Browse Source

use include instead of extend

pull/101/head
Vincent Vinet 10 years ago
parent
commit
9790a8ce1c
  1. 6
      web_widget_datepicker_options/static/src/js/datepicker.js

6
web_widget_datepicker_options/static/src/js/datepicker.js

@ -18,11 +18,11 @@
*/ */
/*global openerp, _, $ */ /*global openerp, _, $ */
openerp.web_datetime_options = function (instance) {
openerp.web_widget_datepicker_options = function (instance) {
"use strict"; "use strict";
instance.web.form.FieldDatetime = instance.web.form.FieldDatetime.extend({
instance.web.form.FieldDatetime.include({
initialize_content: function() { initialize_content: function() {
this._super(); this._super();
var self = this; var self = this;
@ -36,7 +36,7 @@ openerp.web_datetime_options = function (instance) {
} }
}); });
instance.web.form.FieldDate = instance.web.form.FieldDate.extend({
instance.web.form.FieldDate.include({
initialize_content: function() { initialize_content: function() {
this._super(); this._super();
var self = this; var self = this;

Loading…
Cancel
Save