Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,451
edits
No edit summary |
Bongolium500 (talk | contribs) (merged to MediaWiki:Gadget-cs.js) |
||
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
console.log("Common.js is running"); | |||
/* ================ | /* ================ | ||
TABLE stuff | TABLE stuff | ||
Line 117: | Line 118: | ||
} | } | ||
}); | }); | ||
/* ================ | /* ================ | ||
ARCHIVE TOOL | ARCHIVE TOOL | ||
Line 134: | Line 128: | ||
archiveSubpage: 'Archive', | archiveSubpage: 'Archive', | ||
userLang: true | userLang: true | ||
}; | }; | ||
/* ================ | /* ================ | ||
{{pullout}} | |||
Accesability | |||
tweaks | |||
================ */ | ================ */ | ||
$(document).ready(function(){ | |||
$('.pullout-content').each(function(i, obj) { | |||
$(obj).attr("aria-hidden","false"); | |||
var toggle = $(".pullout-handle"); | |||
$(toggle).attr("aria-controls","mw-customcollapsible-pullout"); | |||
$(toggle).attr("title","Hide editor notices"); | |||
$(toggle).attr("aria-label","Hide editor notices"); | |||
}); | |||
}); | |||
$(".pullout-content").on("afterExpand.mw-collapsible", function() { | |||
$(this).attr("aria-hidden","false"); | |||
var toggle = $(".pullout-handle"); | |||
$(toggle).attr("aria-expanded","true"); | |||
$(toggle).attr("title","Hide editor notices"); | |||
}; | $(toggle).attr("aria-label","Hide editor notices"); | ||
}); | |||
$(".pullout-content").on("afterCollapse.mw-collapsible", function() { | |||
$(this).attr("aria-hidden","true"); | |||
var toggle = $(".pullout-handle"); | |||
$(toggle).attr("aria-expanded","false"); | |||
$(toggle).attr("title","Show editor notices"); | |||
$(toggle).attr("aria-label","Show editor notices"); | |||
}); | |||
/* ================ | /* ================ | ||
{{nwlh}} | |||
================ | |||
================ | re-instate if external links are set to open in new tabs | ||
$(document).ready(function(){ | |||
$('NWLH').children("a").each(function(i, obj) { | |||
$(obj).removeAttr("target"); | |||
}); | |||
}); */ | |||
}; |
edits