summaryrefslogtreecommitdiff
path: root/skins/common/wikibits.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/common/wikibits.js')
-rw-r--r--skins/common/wikibits.js20
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('\\');