Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7749
mediawiki.util.js.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:32 PM
2014-11-21 23:32:43 (UTC+0)
Size
842 B
Referenced Files
None
Subscribers
None
mediawiki.util.js.patch
View Options
Index: mediawiki.util.js
===================================================================
--- mediawiki.util.js (revision 90716)
+++ mediawiki.util.js (working copy)
@@ -374,9 +374,13 @@
// Unhide portlet if it was hidden before
$portlet.removeClass( 'emptyPortlet' );
- // Wrap the anchor tag in a <span> and create a list item for it
+ // Wrap the anchor tag in a list item (and a span if $portlet is a Vector tab)
// and back up the selector to the list item
- var $item = $link.wrap( '<li><span></span></li>' ).parent().parent();
+ if ( $portlet.hasClass( 'vectorTabs' ) ) {
+ var $item = $link.wrap( '<li><span></span></li>' ).parent().parent();
+ } else {
+ var $item = $link.wrap( '<li></li>' ).parent();
+ }
// Implement the properties passed to the function
if ( id ) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7278
Default Alt Text
mediawiki.util.js.patch (842 B)
Attached To
Mode
T31567: mw.util.addPortletLink should only wrap link in <span> for "vectorTabs" portlets
Attached
Detach File
Event Timeline
Log In to Comment