MediaWiki:Gadget-editSummary.js: различия между версиями
м O_o |
м >_< Weird on MonoBook |
||
| Строка 3: | Строка 3: | ||
var sum = document.getElementById('wpSummary'); | var sum = document.getElementById('wpSummary'); | ||
if (!sum || (sum.form.wpSection && sum.form.wpSection.value == 'new')) return; | if (!sum || (sum.form.wpSection && sum.form.wpSection.value == 'new')) return; | ||
var sp = document.createElement(' | var sp = document.createElement('span'); sp.id = 'userSummaryButtonsA'; | ||
sum.parentNode.insertBefore(sp, sum.nextSibling); | sum.parentNode.insertBefore(sp, sum.nextSibling); | ||
// sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling); | // sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling); | ||
| Строка 24: | Строка 23: | ||
addSumButton('картинка', 'картинка', 'Добавлены картинки'); | addSumButton('картинка', 'картинка', 'Добавлены картинки'); | ||
$(sp).css({display:'inline'}).children("a").css({display:'inline'}); | |||
$(sp) | |||
} | } | ||