summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
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);
+ }
+}