MediaWiki:Gadget-VisibilityToggles.js: Difference between revisions

Created page with "eslint-env es5, browser, jquery: eslint semi: "error": jshint esversion: 5, eqeqeq: true: globals $, mw: requires mw.cookie, mw.storage: (function VisibilityTogglesIIFE () { "use strict"; // Toggle object that is constructed so that `toggle.status = !toggle.status` // automatically calls either `toggle.show()` or `toggle.hide()` as appropriate. // Creating toggle also automatically calls either the show or the hide function. function Toggle (sho..."
 
m 1 revision imported
 
(One intermediate revision by one other user not shown)
Line 252: Line 252:
this[i].status = status;
this[i].status = status;


this.sidebarToggle.html((status ? "Hide " : "Show ") + this.name);
this.sidebarToggle.text((status ? "Hide " : "Show ") + this.name);
},
},
},
},