Browse Source

[IMP] web_widget_color: Simplifies widget initialization

pull/604/head
omar7r 7 years ago
committed by GitHub
parent
commit
206c82b464
  1. 14
      web_widget_color/static/src/js/widget.js

14
web_widget_color/static/src/js/widget.js

@ -72,19 +72,7 @@ odoo.define('web.web_widget_color', function(require) {
* Init jscolor for each editable mode on view form
*/
FormView.include({
on_button_edit: function () {
this._super();
jscolor.init(this.$el[0]);
},
on_button_create: function () {
this._super();
jscolor.init(this.$el[0]);
},
on_button_new: function () {
this._super();
jscolor.init(this.$el[0]);
},
on_button_duplicate: function () {
on_form_changed: function () {
this._super();
jscolor.init(this.$el[0]);
},

Loading…
Cancel
Save