mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Object.values not supported in IE
This commit is contained in:
parent
00c84bec27
commit
03a96bed8a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user