From f2dc0f3dbe81b3f746f5ee40e2872c2520a7f3b9 Mon Sep 17 00:00:00 2001 From: mixxr Date: Mon, 13 Jun 2016 01:17:54 +0200 Subject: [PATCH] Update datetime-picker.js just a typo (viewVialue) return !isNaN(parseDateString(viewValue)) && validateMinMax(parseDateString(viewVialue)); has to be (viewValue) return !isNaN(parseDateString(viewValue)) && validateMinMax(parseDateString(viewValue)); --- datetime-picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datetime-picker.js b/datetime-picker.js index 0f0ba68..09eb995 100644 --- a/datetime-picker.js +++ b/datetime-picker.js @@ -573,7 +573,7 @@ angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bo } else if (angular.isDate(new Date(value)) && !isNaN(new Date(value).valueOf())) { return validateMinMax (new Date(value)); } else if (angular.isString(value)) { - return !isNaN(parseDateString(viewValue)) && validateMinMax(parseDateString(viewVialue)); + return !isNaN(parseDateString(viewValue)) && validateMinMax(parseDateString(viewValue)); } else { return false; }