imported>Administrator |
imported>Administrator |
(同じ利用者による、間の1版が非表示) |
1行目: |
1行目: |
− | /*<source lang="javascript">*/
| + | |
− | /* ここに記述したJavaScriptはベクター・スキンの利用者に影響します */
| |
− | // Force IP to preview before saving changes.
| |
− | // Copyright Marc Mongenet, 2006
| |
− | function forcePreview()
| |
− | {
| |
− | if (wgUserName != null) return;
| |
− | var saveButton = document.getElementById("wpSave");
| |
− | if (!saveButton) return;
| |
− | if (location.search.search(/&action=edit/) == -1) return;
| |
− | saveButton.disabled = true;
| |
− | saveButton.style.fontWeight = "normal";
| |
− | document.getElementById("wpPreview").style.fontWeight = "bold";
| |
− | }
| |
− |
| |
− | addOnloadHook(forcePreview);
| |
− |
| |
− | /*</source>*/
| |