fix callbacks

This commit is contained in:
Mads Rasmussen
2017-01-04 10:45:40 +01:00
parent 339957bd91
commit ddad642a88

View File

@@ -96,7 +96,7 @@ Use this directive to render a date time picker
}
function onHide(event) {
if (scope.onChange) {
if (scope.onHide) {
scope.$apply(function(){
// callback
scope.onHide({event: event});
@@ -132,7 +132,7 @@ Use this directive to render a date time picker
}
function onUpdate(event) {
if (scope.onShow) {
if (scope.onUpdate) {
scope.$apply(function(){
// callback
scope.onUpdate({event: event});