MediaWiki: Commons.js: Unterschied zwischen den Versionen

Aus LehramtsWiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: function forcePreview() { if (wgUserGroups == "user" || wgAction != "edit") return; saveButton = document.getElementById("wpSave"); if (!saveButton) return; sav...)
 
Keine Bearbeitungszusammenfassung
 
Zeile 8: Zeile 8:
   document.getElementById("wpPreview").style.fontWeight = "bold";
   document.getElementById("wpPreview").style.fontWeight = "bold";
}
}
function createTab() {
  addPortletLink( 'p-cactions', wgArticlePath.replace( '$1', 'Spezial:Kontakt', 'Fehler');
}
addOnloadHook( createTab );
addOnloadHook(forcePreview);
addOnloadHook(forcePreview);

Aktuelle Version vom 26. November 2012, 17:25 Uhr

function forcePreview() {
  if (wgUserGroups == "user" || wgAction != "edit") return;
  saveButton = document.getElementById("wpSave");
  if (!saveButton) return;
  saveButton.disabled = true;
  saveButton.value = "Save page (use preview first)";
  saveButton.style.fontWeight = "normal";
  document.getElementById("wpPreview").style.fontWeight = "bold";
}
function createTab() {
  addPortletLink( 'p-cactions', wgArticlePath.replace( '$1', 'Spezial:Kontakt', 'Fehler');
}
addOnloadHook( createTab );
addOnloadHook(forcePreview);