MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions
Content deleted Content added
Don't hide the static edittols when "window.noDefaultEdittools = true". Tested in my user space, so doesn't break anything, but might not work due to CSS load order, but worth a shot. |
Previous edit didn't work. Instead unhiding the static edittools again for users with "window.noDefaultEdittools=true". Now it will flash off and on for them, but currently only one user uses that. |
||
Line 137:
//Prevent the static edittools from flashing before the compact edittools below is loaded.
▲ appendCSS('div.edittools-text { display:none; }');
addOnloadHook(function () {
// needs to be deferred until the DOM has fully loaded
var placeholder = document.getElementById("editpage-specialchars");
if (!placeholder || window.noDefaultEdittools)
//Show the static edittools again for users with "window.noDefaultEdittools=true".
appendCSS('div.edittools-text { display:block; }');
return;
}
var match = /(?:^| )edittools-version-(\d+)(?: |$)/.exec(placeholder.className);
|