summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 1ca16981..49470145 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -42,7 +42,7 @@ $(window).ready(function() {
$(form).find('input[type="submit"]').val(submit_txt);
$(form).find('input[type="submit"]').removeAttr('disabled');
} else if (post_response.redirect && post_response.id) {
- if ($(form).find('input[name="thread"]')) {
+ if (!$(form).find('input[name="thread"]').length) {
document.location = post_response.redirect;
} else {
$.ajax({