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';
// $(sp).css({position:'relative', top:'-2.5em', display:'block', marginBottom:'-2em'});
  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").show();
         $(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();
}//.css({display:'inline-block'});
}
   
   
function addSumButton(name, text, title) {
function addSumButton(name, text, title) {