Archived
1
0

another check for no element

This commit is contained in:
Jeff Becker 2016-03-25 10:01:33 -04:00
parent 5d14475373
commit 2959be4564
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -193,9 +193,11 @@ function nntpchan_mod(mod_action, result_elem) {
elem.innerHTML = "error: HTTP "+status; elem.innerHTML = "error: HTTP "+status;
} }
// clear input // clear input
if (input) {
input.value = ""; input.value = "";
} }
} }
}
if (mod_action.name) { if (mod_action.name) {
var url = mod_action.name + "/" + target; var url = mod_action.name + "/" + target;
ajax.open(mod_action.method || "GET", url); ajax.open(mod_action.method || "GET", url);