MediaWiki:Gadget-editSummary.js: различия между версиями
м // |
м ??? |
||
| Строка 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('div'); sp.id = 'userSummaryButtonsA'; | ||
// $(sp).css({position:'relative', top:'-2.5em', display:'block', marginBottom:'-2em'}); | // $(sp).css({position:'relative', top:'-2.5em', display:'block', marginBottom:'-2em'}); | ||
// sum.parentNode.insertBefore(sp, sum.nextSibling); | |||
// sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling); | // sum.parentNode.insertBefore(document.createElement('br'), sum.nextSibling); | ||
| Строка 33: | Строка 33: | ||
$(sp).on("mouseover", function() { | $(sp).on("mouseover", function() { | ||
$("#userSummaryButtonsA a").css({display:'inline-block'}); | $("#userSummaryButtonsA a").css({display:'inline-block'}); | ||
} | }).on("mouseout", function() { | ||
$("#userSummaryButtonsA a").css({display:'none'}); | $("#userSummaryButtonsA a").css({display:'none'}); | ||
}); | }); | ||