Index: trunk/extensions/WikiEditor/modules/jquery.wikiEditor.toolbar.js |
— | — | @@ -701,7 +701,8 @@ |
702 | 702 | } |
703 | 703 | var $selectedIndex = $index.find( '*[rel=' + selected + ']' ); |
704 | 704 | if ( $selectedIndex.size() == 0 ) { |
705 | | - selected = $index.children().eq( 0 ).attr( 'rel' ); |
| 705 | + $selectedIndex = $index.children().eq( 0 ); |
| 706 | + selected = $selectedIndex.attr( 'rel' ); |
706 | 707 | $.cookie( cookie, selected, { expires: 30, path: '/' } ); |
707 | 708 | } |
708 | 709 | $pages.children().hide(); |