MediaWiki:Common.js: различия между версиями

Материал из RSB-Doc
Перейти к навигации Перейти к поиску
Eme (обсуждение | вклад)
Нет описания правки
Eme (обсуждение | вклад)
Нет описания правки
Строка 1: Строка 1:
var auto_comment = 0;
var auto_comment = 0;


if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
Строка 11: Строка 10:
       }
       }
}
}
/*
function CPopUp_GetCategory_Settings()
{
this.selectedCategoryName;
this.categoryListCode;
this.xmlHttpObj;
this.popUp;
this.url = 'http://transfer.softlab.ru/extensions/CategoryTree/GeOnlytCategoryTree.php';
}
var popUpGetCategorySettings = new CPopUp_GetCategory_Settings();
*/

Версия от 16:16, 19 декабря 2007

var auto_comment = 0;

if (document.URL.indexOf("action=edit") > 0 || document.URL.indexOf("action=submit") > 0)
{
       if (wgCanonicalNamespace != "Special")
       {
               document.write('<script type="text/javascript" src="/index.php' +
               '?title=MediaWiki:Onlyifediting.js&action=raw' +
               '&ctype=text/javascript&dontcountme=s"></script>');
       }
}