]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
disable some submit-type buttons when required data is not given
[tt-rss.git] / functions.js
index d5ac2c087f79bf55f5ff8897207b13aefbdb6f22..6b064b2f0f84f6db852ae70cf3b821ddc02c8c3f 100644 (file)
@@ -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);
+       }
+}