Index: branches/uploadwizard/phase3/skins/common/wikibits.js |
— | — | @@ -352,15 +352,16 @@ |
353 | 353 | // unhide portlet if it was hidden before |
354 | 354 | root.className = root.className.replace( /(^| )emptyPortlet( |$)/, "$2" ); |
355 | 355 | |
356 | | - var span = document.createElement( 'span' ); |
357 | | - span.appendChild( document.createTextNode( text ) ); |
358 | | - |
359 | 356 | var link = document.createElement( 'a' ); |
360 | | - link.appendChild( span ); |
| 357 | + link.appendChild( document.createTextNode( text ) ); |
361 | 358 | link.href = href; |
362 | 359 | |
| 360 | + // Wrap in a span - make it work with vector tabs and has no effect on any other portlets |
| 361 | + var span = document.createElement( 'span' ); |
| 362 | + span.appendChild( link ); |
| 363 | + |
363 | 364 | var item = document.createElement( 'li' ); |
364 | | - item.appendChild( link ); |
| 365 | + item.appendChild( span ); |
365 | 366 | if ( id ) { |
366 | 367 | item.id = id; |
367 | 368 | } |