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

м O0o___o0O
м wgSkin == 'monobook' / else
Строка 1: Строка 1:
//Summary buttons  
//Summary buttons  
function SummaryButtons(){
function SummaryButtons(){
  var sum = (document.getElementById('cke_toolbar_source_1') || document.getElementById('wpTextbox1'));
 
  if(wgSkin == 'monobook') {
  var sum = document.getElementById('wpTextbox1');
}else{
  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('div'); sp.id = 'userSummaryButtonsA';
  var sp = document.createElement('div'); sp.id = 'userSummaryButtonsA';