Browse Source

!fixup add button clicked indicator

pull/428/head
Pierrick Brun 5 years ago
parent
commit
9dbc0f6355
  1. 5
      pos_mail_receipt/static/src/js/screens.js

5
pos_mail_receipt/static/src/js/screens.js

@ -17,6 +17,10 @@ odoo.define("pos_mail_receipt.screens", function (require) {
} }
}); });
}, },
click_next: function() {
this._super();
this.$('.button.email').removeClass("highlight");
},
email: function() { email: function() {
var self = this; var self = this;
var email = false; var email = false;
@ -42,6 +46,7 @@ odoo.define("pos_mail_receipt.screens", function (require) {
var self = this; var self = this;
options = options || {}; options = options || {};
var timeout = typeof options.timeout === 'number' ? options.timeout : 7500; var timeout = typeof options.timeout === 'number' ? options.timeout : 7500;
this.$('.button.email').addClass("highlight");
while (self.pos.get("synch").state == "connecting") { while (self.pos.get("synch").state == "connecting") {
await sleep(1000); await sleep(1000);
} }

Loading…
Cancel
Save