Changes
Compatibility with tabview
(function($) {
(function(mw, $) {
"use strict";
"use strict";
$(document).ready(function() {
$(document).ready(function() {
return;
return;
}
}
var ToggleStorage = function(property, property_default) {
var ToggleStorage = function(property, property_default) {
if (!localStorage[property]) {
if (!localStorage[property]) {
}
}
if (toggleStorage.on()) {
if (toggleStorage.on()) {
$(".toggle-show").show();
$(".toggle-hide").hide();
$(target_class).show();
$(target_class).show();
} else {
} else {
$(".toggle-show").hide();
$(".toggle-hide").show();
$(target_class).hide();
$(target_class).hide();
}
}
}
}
$(".toggle").click(function() {
function updateContent() {
$(".toggle").each(function() {
});
var toggle_element = $(this);
toggle_element.show();
update(toggle_element);
toggle_element.off("click");
toggle_element.click(function() {
update(toggle_element, true);
});
});
}
updateContent();
mw.hook("wikipage.content").add(updateContent);
});
});
}(jQuery));
}(mediaWiki, jQuery));