summaryrefslogtreecommitdiff
path: root/js/ajax.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-09-18 09:00:22 -0400
committerczaks <marcin@6irc.net>2013-09-18 09:00:22 -0400
commit99a2e1cf3ddf3e7b3be8f65029297dce6955509c (patch)
tree9001d26a78bb7e7f0156633b45b17c96a95c9bbb /js/ajax.js
parent8ca495e5b8c8382dbfeebc4990f0accc80101a46 (diff)
parent8a5d6b1d3f2d9ce8177c240f78b9b1801bc7306c (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard into vichan-devel-4.5
Conflicts: js/quick-reply.js
Diffstat (limited to 'js/ajax.js')
-rw-r--r--js/ajax.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/ajax.js b/js/ajax.js
index ee2ff7b5..8f0f7258 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -12,6 +12,7 @@
*/
$(window).ready(function() {
+ var settings = new script_settings('ajax');
var do_not_ajax = false;
var setup_form = function($form) {
@@ -68,7 +69,8 @@ $(window).ready(function() {
$(form).find('input[type="submit"]').removeAttr('disabled');
}
} else if (post_response.redirect && post_response.id) {
- if (!$(form).find('input[name="thread"]').length) {
+ if (!$(form).find('input[name="thread"]').length
+ || (!settings.get('always_noko_replies', true) && !post_response.noko)) {
document.location = post_response.redirect;
} else {
$.ajax({