MediaWiki:Editortoolbar.js — различия между версиями
Материал из Энциклопедия фонда «Хайазг»
Sfedosov (обсуждение | вклад) (Новая: asd) |
Oshlikov (обсуждение | вклад) |
||
| (не показаны 72 промежуточные версии 3 участников) | |||
| Строка 1: | Строка 1: | ||
| − | + | /*<nowiki>*/ | |
| + | var disable_zero_section = 0; | ||
| + | function edit_zero_section() | ||
| + | { | ||
| + | if(disable_zero_section != 1) | ||
| + | { | ||
| + | jQuery("<span class=\"editsection\">[<a href=\"/" + wgPageName + "?action=edit§ion=0\">править</a>]</span>").prependTo("h1.firstHeading"); | ||
| + | } | ||
| + | } | ||
| + | addOnloadHook(edit_zero_section); | ||
| + | |||
| + | |||
| + | |||
| + | jQuery(document).ready( | ||
| + | function() { | ||
| + | jQuery('<li id="t-commonUpload"><a href="http://commons.hayazg.info/Special:Upload">Загрузить на склад</a></li>').insertAfter("li#t-upload"); | ||
| + | jQuery('<input type="submit" value="Загрузить файл" name="wpUpload" title="Начать загрузку [s]" accesskey="s" class="mw-htmlform-submit" />').insertAfter("table#mw-htmlform-source"); | ||
| + | |||
| + | }); | ||
| + | /*</nowiki>*/ | ||
Текущая версия на 19:13, 1 марта 2013
/*<nowiki>*/
var disable_zero_section = 0;
function edit_zero_section()
{
if(disable_zero_section != 1)
{
jQuery("<span class=\"editsection\">[<a href=\"/" + wgPageName + "?action=edit§ion=0\">править</a>]</span>").prependTo("h1.firstHeading");
}
}
addOnloadHook(edit_zero_section);
jQuery(document).ready(
function() {
jQuery('<li id="t-commonUpload"><a href="http://commons.hayazg.info/Special:Upload">Загрузить на склад</a></li>').insertAfter("li#t-upload");
jQuery('<input type="submit" value="Загрузить файл" name="wpUpload" title="Начать загрузку [s]" accesskey="s" class="mw-htmlform-submit" />').insertAfter("table#mw-htmlform-source");
});
/*</nowiki>*/