Modified datetimepicker to allow passing of a view mode parameter to the hide method; called from datepicker controller to only hide on date change when in day view mode
This commit is contained in:
@@ -152,7 +152,13 @@
|
||||
this._attachDatePickerEvents();
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
hide: function (hideOnlyIfInViewMode) {
|
||||
|
||||
// Ignore if hideOnlyIfInViewMode parameter passed and we aren't currently in the requested view mode
|
||||
if (hideOnlyIfInViewMode != undefined && hideOnlyIfInViewMode != this.viewMode) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Ignore event if in the middle of a picker transition
|
||||
var collapse = this.widget.find('.collapse')
|
||||
for (var i = 0; i < collapse.length; i++) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -27,7 +27,7 @@ function dateTimePickerController($scope, notificationsService, assetsService, a
|
||||
}
|
||||
}
|
||||
|
||||
$element.find("div:first").datetimepicker("hide");
|
||||
$element.find("div:first").datetimepicker("hide", 0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user