[FIX] website_quote: remove loading attribute if missing data
In commit bc43417b, a loading attribute is set on any submit button. The
problem is that this attribute is the first thing to be set. Therefore,
we cannot prevent its propagation.
Since Bootstrap sets this 'loading' attribute in a setTimeout, we need
to remove it in a setTimeout as well.
This commit is contained in:
@@ -79,6 +79,9 @@ if(!$('.o_website_quote').length) {
|
||||
self.$('#signer').toggleClass('has-error', !signer_name);
|
||||
self.$('#drawsign').toggleClass('panel-danger', is_empty).toggleClass('panel-default', !is_empty);
|
||||
if (is_empty || ! signer_name){
|
||||
setTimeout(function () {
|
||||
self.$('button[type="submit"], a.a-submit').removeAttr('data-loading-text').button('reset');
|
||||
})
|
||||
return false;
|
||||
}
|
||||
ajax.jsonRpc("/quote/"+action[1], 'call', {
|
||||
|
||||
Reference in New Issue
Block a user