From d81f562b712f2387fa02290bf2ca86392ab356f2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 20:21:25 +0000 Subject: Aktualisierung auf Version 1.8.1 --- skins/common/wikibits.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'skins/common/wikibits.js') 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('\\'); -- cgit v1.2.3-54-g00ecf