From fdbd905d6f6e8cf9fedbb8dd80e9e4f8e12297dc Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 14:13:43 +1000 Subject: [PATCH] . --- js/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({