1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

ajax.js: fix a cache problem: clicking back sometimes makes submit button disabled

This commit is contained in:
czaks 2013-12-22 22:51:28 +01:00
parent 37fe209290
commit 803704db6d

View File

@ -15,6 +15,9 @@ $(window).ready(function() {
var settings = new script_settings('ajax');
var do_not_ajax = false;
// Enable submit button if disabled (cache problem)
$('input[type="submit"]').removeAttr('disabled');
var setup_form = function($form) {
$form.submit(function() {
if (do_not_ajax)