Browse Source

FIX calling super for save: function

pull/267/head
eLBati 9 years ago
parent
commit
3639561aad
  1. 15
      web_widget_digital_signature/static/src/js/digital_sign.js

15
web_widget_digital_signature/static/src/js/digital_sign.js

@ -117,18 +117,9 @@ openerp.web_widget_digital_signature = function(instance) {
}, },
}); });
instance.web.FormView.include({ instance.web.FormView.include({
save: function(prepend_on_create) {
var self = this;
$('.save_sign').click()
var save_obj = {prepend_on_create: prepend_on_create, ret: null};
this.save_list.push(save_obj);
return this._process_operations().then(function() {
if (save_obj.error)
return $.Deferred().reject();
return $.when.apply($, save_obj.ret);
}).done(function() {
self.$el.removeClass('oe_form_dirty');
});
save: function() {
$('.save_sign').click();
return this._super.apply(this, arguments);
}, },
}) })
} }
Loading…
Cancel
Save