MediaWiki:Gadget-editSummary.js: различия между версиями
м ??? |
м testtesttest |
||
| Строка 4: | Строка 4: | ||
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(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); | ||
| Строка 30: | Строка 27: | ||
$(sp) | $(sp) | ||
.on("mouseover", function() { | .on("mouseover", function() { | ||
$(this).children("a"). | $(this).children("a").css({display:'inline-block'}); | ||
}).on("mouseout", function() { | }).on("mouseout", function() { | ||
$(this).children("a").hide(); | $(this).children("a").hide(); | ||
}).children("a").hide(); | }).children("a").hide(); | ||
} | |||
} | |||
function addSumButton(name, text, title) { | function addSumButton(name, text, title) { | ||