0003-js-disable-submit-buttons-during-autosave-58276.patch
wcs/qommon/static/js/qommon.forms.js | ||
---|---|---|
136 | 136 |
install_autosave(); |
137 | 137 |
return; |
138 | 138 |
} |
139 |
$('form .buttons.submit button').prop('disabled', true); |
|
140 |
var $message = $('<p>Sauvegarde automatique en cours</p>'); |
|
141 |
$('form .buttons.submit').prepend($message); |
|
139 | 142 |
autosave_xhr = $.ajax({ |
140 | 143 |
type: 'POST', |
141 | 144 |
url: window.location.pathname + 'autosave', |
... | ... | |
147 | 150 |
}, |
148 | 151 |
complete: function() { |
149 | 152 |
autosave_is_running = false; |
153 |
$('form .buttons.submit button').prop('disabled', false); |
|
154 |
$message.remove(); |
|
150 | 155 |
autosave_xhr = null; |
151 | 156 |
if (autosave_timeout_id !== null) { |
152 | 157 |
install_autosave(); |
153 |
- |