mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 05:25:56 +00:00
disable some submit-type buttons when required data is not given
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user