[FIX] web: restore access to minDate/maxDate functions on the DateWidget
Used in Enterprise (sale_subscription_dashboard). Solve a traceback as reported on BS4 pad
This commit is contained in:
@@ -128,6 +128,22 @@ var DateWidget = Widget.extend({
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @returns {Moment|false} value
|
||||
*/
|
||||
maxDate: function (date) {
|
||||
this.__libInput = true;
|
||||
this.$input.datetimepicker('maxDate', date || null);
|
||||
this.__libInput = false;
|
||||
},
|
||||
/**
|
||||
* @returns {Moment|false} value
|
||||
*/
|
||||
minDate: function (date) {
|
||||
this.__libInput = true;
|
||||
this.$input.datetimepicker('minDate', date || null);
|
||||
this.__libInput = false;
|
||||
},
|
||||
/**
|
||||
* @param {Moment|false} value
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user