fixes js error with date picker

This commit is contained in:
Shannon
2015-06-26 10:06:22 +02:00
parent f14989f7fd
commit 42b2b16f0e

View File

@@ -135,18 +135,20 @@ function dateTimePickerController($scope, notificationsService, assetsService, a
$scope.model.value = null;
}
});
//unbind doc click event!
$scope.$on('$destroy', function () {
unsubscribe();
});
});
});
});
//unbind doc click event!
$scope.$on('$destroy', function () {
$(document).unbind("click", $scope.hidePicker);
unsubscribe();
});
}