forked from leftypol/leftypol
js/settings.js: Simple config stuff for javascript extensions
This commit is contained in:
parent
cff15bd765
commit
d13f30b39f
4 changed files with 362 additions and 338 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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue