mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-20 09:42:45 +01:00
ajax.js: fix a cache problem: clicking back sometimes makes submit button disabled
This commit is contained in:
parent
eb4581abdb
commit
5e8637bfcf
@ -15,6 +15,9 @@ $(window).ready(function() {
|
|||||||
var settings = new script_settings('ajax');
|
var settings = new script_settings('ajax');
|
||||||
var do_not_ajax = false;
|
var do_not_ajax = false;
|
||||||
|
|
||||||
|
// Enable submit button if disabled (cache problem)
|
||||||
|
$('input[type="submit"]').removeAttr('disabled');
|
||||||
|
|
||||||
var setup_form = function($form) {
|
var setup_form = function($form) {
|
||||||
$form.submit(function() {
|
$form.submit(function() {
|
||||||
if (do_not_ajax)
|
if (do_not_ajax)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user