summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets
diff options
context:
space:
mode:
authorfwi-odoo <fwi@odoo.com>2017-02-14 15:10:01 +0100
committerfwi-odoo <fwi@odoo.com>2017-02-14 15:10:01 +0100
commitc93be09f2e193dfee8a5d6debd80d5d83de55692 (patch)
treed4efeb1f18e5539089fea341269a5424e3a5173c /addons/web/static/src/js/widgets
parent7015ec5062eca0422059aeab686ce1f21c3865d5 (diff)
[FIX] web: caret misplaced
Due to the library algorithm to place the datetimepicker, the div containing the input was no longer relative so the caret was misplaced. Put back the position relative and place the datetimepicker relative to the input.
Diffstat (limited to 'addons/web/static/src/js/widgets')
-rw-r--r--addons/web/static/src/js/widgets/date_picker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/widgets/date_picker.js b/addons/web/static/src/js/widgets/date_picker.js
index 20171e554a2..bd9416a278a 100644
--- a/addons/web/static/src/js/widgets/date_picker.js
+++ b/addons/web/static/src/js/widgets/date_picker.js
@@ -46,8 +46,8 @@ var DateWidget = Widget.extend({
this.$input.focus(function(e) {
e.stopImmediatePropagation();
});
- this.$el.datetimepicker(this.options);
- this.picker = this.$el.data('DateTimePicker');
+ this.$input.datetimepicker(this.options);
+ this.picker = this.$input.data('DateTimePicker');
this.$input.click(this.picker.toggle.bind(this.picker));
this.set_readonly(false);
this.set_value(false);