diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 20:21:25 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 20:21:25 +0000 |
commit | d81f562b712f2387fa02290bf2ca86392ab356f2 (patch) | |
tree | d666cdefbe6ac320827a2c6cb473581b46e22c4c /skins/common/wikibits.js | |
parent | 183851b06bd6c52f3cae5375f433da720d410447 (diff) |
Aktualisierung auf Version 1.8.1
Diffstat (limited to 'skins/common/wikibits.js')
-rw-r--r-- | skins/common/wikibits.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index d95c4dcc..3a8fd6c6 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -49,6 +49,8 @@ function hookEvent(hookName, hookFunct) { attachEvent("on" + hookName, hookFunct); } +//note: all skins shoud call runOnloadHook() at the end of html output, +// so the below should be redundant. It's there just in case. hookEvent("load", runOnloadHook); // document.write special stylesheet links @@ -610,10 +612,24 @@ function checkboxMouseupHandler(e) { return true; } -function fillDestFilename() { +function toggle_element_activation(ida,idb) { if (!document.getElementById) return; - var path = document.getElementById('wpUploadFile').value; + document.getElementById(ida).disabled=true; + document.getElementById(idb).disabled=false; +} + +function toggle_element_check(ida,idb) { + if (!document.getElementById) + return; + document.getElementById(ida).checked=true; + document.getElementById(idb).checked=false; +} + +function fillDestFilename(id) { + if (!document.getElementById) + return; + var path = document.getElementById(id).value; // Find trailing part var slash = path.lastIndexOf('/'); var backslash = path.lastIndexOf('\\'); |