MediaWiki:Gadget-editSummary.js: различия между версиями
м inline-block |
м O0o___o0O |
||
| Строка 1: | Строка 1: | ||
//Summary buttons | //Summary buttons | ||
function SummaryButtons(){ | function SummaryButtons(){ | ||
var sum = document.getElementById('wpSummary'); | var sum = (document.getElementById('editpage-copywarn') || 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('div'); sp.id = 'userSummaryButtonsA'; | ||
sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling); | |||
sum.parentNode.insertBefore(sp, sum.nextSibling); | sum.parentNode.insertBefore(sp, sum.nextSibling); | ||
addSumButton('абсурдоф.', 'абсурдофикация', 'Произведена абсурдофикация'); | addSumButton('абсурдоф.', 'абсурдофикация', 'Произведена абсурдофикация'); | ||
| Строка 23: | Строка 23: | ||
addSumButton('картинка', 'картинка', 'Добавлены картинки'); | addSumButton('картинка', 'картинка', 'Добавлены картинки'); | ||
$(sp | $(sp).children("a").css({display:'inline-block'}); | ||
} | } | ||