Index: trunk/phase3/resources/mediawiki/mediawiki.util.js |
— | — | @@ -374,9 +374,14 @@ |
375 | 375 | // Unhide portlet if it was hidden before |
376 | 376 | $portlet.removeClass( 'emptyPortlet' ); |
377 | 377 | |
378 | | - // Wrap the anchor tag in a <span> and create a list item for it |
| 378 | + // Wrap the anchor tag in a list item (and a span if $portlet is a Vector tab) |
379 | 379 | // and back up the selector to the list item |
380 | | - var $item = $link.wrap( '<li><span></span></li>' ).parent().parent(); |
| 380 | + var $item; |
| 381 | + if ( $portlet.hasClass( 'vectorTabs' ) ) { |
| 382 | + $item = $link.wrap( '<li><span></span></li>' ).parent().parent(); |
| 383 | + } else { |
| 384 | + $item = $link.wrap( '<li></li>' ).parent(); |
| 385 | + } |
381 | 386 | |
382 | 387 | // Implement the properties passed to the function |
383 | 388 | if ( id ) { |