MediaWiki:Gadget-editSummary.js: различия между версиями

м :-)
м ??
Строка 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('span'); sp.id = 'userSummaryButtonsA';
  var sp = document.createElement('span'); sp.id = 'userSummaryButtonsA';
  sp.style = "display:block";
   
$(sp).css({position:'relative', top:'-2em', marginBottom:'-2em', display:'inline-block', float:'right'});
 
  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);