مدیاویکی:Gadget-refToolbar.js: تفاوت میان نسخهها
ظاهر
imported>Kaldari revising script |
imported>Reza1615 بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
function initializeRefTools() { | function initializeRefTools() { | ||
if ( typeof refToolbarInstalled == 'undefined' ) { | if ( typeof refToolbarInstalled == 'undefined' ) { | ||
importScriptURI('// | importScriptURI('//fa.wikipedia.org/w/index.php?title=MediaWiki:RefToolbarBase.js&action=raw&ctype=text/javascript'); | ||
if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) { | if( typeof $.wikiEditor != 'undefined' && typeof $.wikiEditor.modules.dialogs != 'undefined' ) { | ||
نسخهٔ ۲۱ فوریهٔ ۲۰۱۲، ساعت ۱۲:۵۷
function initializeRefTools() {
if ( typeof refToolbarInstalled == 'undefined' ) {
importScriptURI('//fa.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 );
}