MediaWiki:Gadget-refToolbarBase.js: Difference between revisions

Content deleted Content added
m Edokter moved page MediaWiki:RefToolbarBase.js to MediaWiki:Gadget-refToolbarBase.js without leaving a redirect
Move initializeRefTools to a default gadget (step 2)
Line 1:
/*jshint asi:true*/
// Global object
/*global mw, $, CiteTB, citeTemplate, citeErrorCheck */
if (typeof CiteTB == 'undefined') {
if ( var window.CiteTB === undefined ) {
window.CiteTB = {
"Templates" : {}, // All templates
"Options" : {}, // Global options
Line 17 ⟶ 18:
 
// Object for cite templates
window.citeTemplate = function citeTemplate(templatename, shortform, basicfields, expandedfields) {
// Properties
this.templatename = templatename; // The template name - "cite web", "cite book", etc.
Line 176 ⟶ 177:
*/
 
window.citeErrorCheck = function citeErrorCheck(obj) {
this.obj = obj
CiteTB.ErrorChecks[this.obj.testname] = this;