Object.values not supported in IE

This commit is contained in:
Niren Orie 2018-08-13 15:15:46 -04:00
parent 00c84bec27
commit 03a96bed8a

View File

@ -728,7 +728,8 @@ var datetimepickerFactory = function ($) {
} }
var isFormatStandard = function(format){ 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); $.extend($.datetimepicker, standardFormats);