From 03a96bed8aa67db2cd07b451cb3ed98d32c4fa79 Mon Sep 17 00:00:00 2001 From: Niren Orie Date: Mon, 13 Aug 2018 15:15:46 -0400 Subject: [PATCH] Object.values not supported in IE --- jquery.datetimepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 60956b6..ec77b9b 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -728,7 +728,8 @@ var datetimepickerFactory = function ($) { } var isFormatStandard = function(format){ - return Object.values(standardFormats).indexOf(format) === -1 ? false : true; + return $.map(standardFormats, function (val) { return val }) + .indexOf(format) === -1 ? false : true; } $.extend($.datetimepicker, standardFormats);