Diferencia entre revisiones de «MediaWiki:Gadget-refToolbar»

De Bioeticawiki
Línea 15: Línea 15:
   };
   };
}
}
// Only execute on edit, unless it is a user JS/CSS page
// TODO: Remove tests already done by [[MediaWiki:Gadget-refToolbar.js]]
if (
( mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit' ) &&
( ( mw.config.get('wgNamespaceNumber') !== 2 && mw.config.get('wgNamespaceNumber') !== 4 ) ||
( mw.config.get('wgPageName').indexOf('.js') === -1 && mw.config.get('wgPageName').indexOf('.css') === -1 ) )
) {
// TODO: Move this to [[MediaWiki:Gadget-refToolbarDialogs.css]] and add it to the definition of module 'ext.gadget.refToolbarDialogs'
mw.util.addCSS(".cite-form-td {"+
"height: 0 !important;"+
"padding: 0.1em !important;"+
"}");

Revisión del 13:15 27 jul 2016

/*jshint smarttabs:true, loopfunc:true,forin:false*/ /*global mw, $, importScript */ // 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
   "DefaultOptions" : {}, // Script defaults
   "ErrorChecks" : {} // Error check functions
 };

}

// Only execute on edit, unless it is a user JS/CSS page // TODO: Remove tests already done by MediaWiki:Gadget-refToolbar.js if ( ( mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit' ) && ( ( mw.config.get('wgNamespaceNumber') !== 2 && mw.config.get('wgNamespaceNumber') !== 4 ) || ( mw.config.get('wgPageName').indexOf('.js') === -1 && mw.config.get('wgPageName').indexOf('.css') === -1 ) ) ) {

// TODO: Move this to MediaWiki:Gadget-refToolbarDialogs.css and add it to the definition of module 'ext.gadget.refToolbarDialogs' mw.util.addCSS(".cite-form-td {"+ "height: 0 !important;"+ "padding: 0.1em !important;"+ "}");