MediaWiki:Common.js: различия между версиями
Перейти к навигации
Перейти к поиску
YuSer (обсуждение | вклад) Нет описания правки |
YuSer (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
function importScript(page){ | function importScript(page){ | ||
importScriptURI('http://transfer/index.php?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_'))); | importScriptURI('http://transfer/index.php?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_'))); | ||
alert('ok'); | alert('ok'); | ||
| Строка 18: | Строка 16: | ||
} | } | ||
alert('1'); | |||
importScriptURI('http://transfer/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Test.js'); | |||
alert('2'); | |||
importScript('MediaWiki:Test.js'); | importScript('MediaWiki:Test.js'); | ||
alert(' | alert('3'); | ||
Версия от 16:11, 3 декабря 2008
function importScript(page){
importScriptURI('http://transfer/index.php?action=raw&ctype=text/javascript&title='+encodeURIComponent(page.replace(/ /g,'_')));
alert('ok');
}
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>');
}
}
alert('1');
importScriptURI('http://transfer/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Test.js');
alert('2');
importScript('MediaWiki:Test.js');
alert('3');