summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-18 09:29:17 +0100
committerAndrew Dolgov <[email protected]>2006-05-18 09:29:17 +0100
commit2371c520c734769f8150ddf5101052bd0973337e (patch)
tree7938b23c0cf8d2de0ac8bf91d25e61c23ec3514e /functions.js
parent0ceded7a4663fc05d5f4871b01ac66f9c6a7380e (diff)
disable some submit-type buttons when required data is not given
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index d5ac2c087..6b064b2f0 100644
--- a/functions.js
+++ b/functions.js
@@ -947,6 +947,7 @@ function displayDlg(id, param) {
xmlhttp.send(null);
disableHotkeys();
+
}
function infobox_submit_callback() {
@@ -1009,4 +1010,10 @@ function qaddFilter() {
}
-
+function toggleSubmitNotEmpty(e, submit_id) {
+ try {
+ document.getElementById(submit_id).disabled = (e.value == "")
+ } catch (e) {
+ exception_error("toggleSubmitNotEmpty", e);
+ }
+}