From 0a0712d0e2354576d96a1aef4b9f8b5eba295950 Mon Sep 17 00:00:00 2001 From: mido18 Date: Sat, 25 May 2013 03:50:57 +0200 Subject: [PATCH] Update bootstrap-datetimepicker.js problem: when change the date via mouse the textfield does not notified for change event which make it problem when using ember.js solution: adding this block of code to hide function which make ember.js binding notified to changes --- src/js/bootstrap-datetimepicker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index 591bf42a5..fdfbf9339 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -162,6 +162,12 @@ date: this._date }); this._detachDatePickerGlobalEvents(); + if (!this.isInput) { + if (this.component){ + var input = this.$element.find('input'); + $('#'+input.attr('id')).change(); + } + } }, set: function() {