MediaWiki:RefToolbar.js: Difference between revisions

no edit summary
(Created page with "→‎jshint smarttabs:true, loopfunc:true,forin:false: →‎global mw, $: // TODO: make autodate an option in the CiteTemplate object, not a preference // Global object // TODO: // * Remove this once the page is moved to a module 'ext.gadget.refToolbarDialogs' depending on 'ext.gadget.refToolbarBase' if (typeof CiteTB === 'undefined') { var CiteTB = { "Templates" : {}, // All templates "Options" : {}, // Global options "UserOptions" : {}, // User options...")
 
No edit summary
Line 277: Line 277:
   switch( mw.config.get('wgUserLanguage') ) {
   switch( mw.config.get('wgUserLanguage') ) {
     case 'de': // German
     case 'de': // German
       mw.loader.load('/w/index.php?title=MediaWiki:RefToolbarMessages-de.js&action=raw&ctype=text/javascript');
       mw.loader.load('/index.php?title=MediaWiki:RefToolbarMessages-de.js&action=raw&ctype=text/javascript');
       break;
       break;
     default: // English
     default: // English
       mw.loader.load('/w/index.php?title=MediaWiki:RefToolbarMessages-en.js&action=raw&ctype=text/javascript');
       mw.loader.load('/index.php?title=MediaWiki:RefToolbarMessages-en.js&action=raw&ctype=text/javascript');
   }
   }
});
});