[IMP] sign: clear signature when clicking on draw
Clicking on draw in the signature dialog should clear whatever is already drawn on the canvas. task-3040855 closes odoo/odoo#113248 X-original-commit: f1c3d83f5b4f6ef0e2b5db2b7aa55344c91454f0 Related: odoo/enterprise#37338 Signed-off-by: Arnaud Joset <arj@odoo.com> Signed-off-by: Leonardo Pavan Rocha <lpr@odoo.com>
This commit is contained in:
@@ -579,6 +579,7 @@ var NameAndSignature = Widget.extend({
|
||||
*/
|
||||
_onClickSignDrawButton: function (ev) {
|
||||
ev.preventDefault();
|
||||
this.$signatureField.jSignature('reset'); // clears signature when clicking on draw
|
||||
this.setMode('draw');
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user