MediaWiki:Gadget-highlightTable-core.js: Difference between revisions

Created page with " * highlightTable.js * * Description: * Adds highlighting to tables * * History: * - 1.0: Row highlighting - Quarenon * - 1.1: Update from pengLo..."
 
mNo edit summary
Line 86: Line 86:
*/
*/


(function($, mw, OO, rs) {
(function($, mw, OO, gs) {
     'use strict';
     'use strict';


     // constants
     // constants
     var STORAGE_KEY = 'rs:lightTable',
     var STORAGE_KEY = 'gs:lightTable',
         TABLE_CLASS = 'lighttable',
         TABLE_CLASS = 'lighttable',
         LIGHT_ON_CLASS = 'highlight-on',
         LIGHT_ON_CLASS = 'highlight-on',
Line 118: Line 118:
                 }
                 }
                 // check the browser supports local storage
                 // check the browser supports local storage
                 if (!rs.hasLocalStorage()) {
                 if (!gs.hasLocalStorage()) {
                     return;
                     return;
                 }
                 }
Line 501: Line 501:
     */
     */


}(this.jQuery, this.mediaWiki, this.OO, this.rswiki));
}(this.jQuery, this.mediaWiki, this.OO, this.gswiki));


// </pre>
// </pre>