مدیاویکی:Gadget-refToolbar.js: تفاوت میان نسخهها
ظاهر
imported>Mehran صفحهای جدید حاوی 'if (( wgAction == 'edit' || wgAction == 'submit' ) && ( typeof refToolbarInstalled == 'undefined' )) { if (wgServer == "https://secure.wiki...' ایجاد کرد |
imported>Kaldari revising script |
||
| خط ۱: | خط ۱: | ||
function initializeRefTools() { | |||
if ( typeof refToolbarInstalled == 'undefined' ) { | |||
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript'); | |||
if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) { | |||
importScript('MediaWiki:RefToolbar.js'); | |||
} else if( typeof $.wikiEditor != 'undefined' ) { | |||
importScript('MediaWiki:RefToolbarNoDialogs.js'); | |||
} else { | |||
importScript('MediaWiki:RefToolbarLegacy.js'); | |||
} | |||
refToolbarInstalled = true; | |||
} | |||
} | |||
if ( wgAction == 'edit' || wgAction == 'submit' ) { | |||
$( initializeRefTools ); | |||
} | } | ||
نسخهٔ ۲۶ دسامبر ۲۰۱۱، ساعت ۰۵:۲۹
function initializeRefTools() {
if ( typeof refToolbarInstalled == 'undefined' ) {
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript');
if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) {
importScript('MediaWiki:RefToolbar.js');
} else if( typeof $.wikiEditor != 'undefined' ) {
importScript('MediaWiki:RefToolbarNoDialogs.js');
} else {
importScript('MediaWiki:RefToolbarLegacy.js');
}
refToolbarInstalled = true;
}
}
if ( wgAction == 'edit' || wgAction == 'submit' ) {
$( initializeRefTools );
}