MediaWiki:Gadget-editSummary.js: различия между версиями
м ????? |
м O0o___o0O |
||
| Строка 1: | Строка 1: | ||
//Summary buttons | //Summary buttons | ||
function SummaryButtons(){ | function SummaryButtons(){ | ||
var sum = (document.getElementById(' | var sum = (document.getElementById('cke_toolbar_source_1') || document.getElementById('wpTextbox1')); | ||
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('div'); sp.id = 'userSummaryButtonsA'; | 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); | ||