diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 14:13:43 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 14:13:43 +1000 |
| commit | fdbd905d6f6e8cf9fedbb8dd80e9e4f8e12297dc (patch) | |
| tree | 520e9fa51b7183f60ab97ecb34d10bcf05104324 | |
| parent | 31e64f096ef264c36c820e6466414f2767ed3aee (diff) | |
.
| -rw-r--r-- | js/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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({ |
