diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-18 14:40:39 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-18 14:40:39 +1000 |
| commit | d13f30b39f93f694241239c86c08c306c7b94fd4 (patch) | |
| tree | 16caddbc80f4b0ccee56ef29ba253c3c1ff104e8 /js/ajax.js | |
| parent | cff15bd765d1bd65f17a4407970244cc9d258521 (diff) | |
js/settings.js: Simple config stuff for javascript extensions
Diffstat (limited to 'js/ajax.js')
| -rw-r--r-- | js/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,7 @@ */ $(window).ready(function() { + var settings = new script_settings('ajax'); var do_not_ajax = false; var setup_form = function($form) { @@ -61,7 +62,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({ |
