JS fixes for IE (#12721)

* JS fixes for IE
just a couple that caused the issues with graph loading and widget settings not saving.

* remove polyfill

* Update ports.inc.php
This commit is contained in:
Tony Murray
2021-04-08 04:22:44 -05:00
committed by GitHub
parent d34cd0a1b8
commit 500f50e867
2 changed files with 4 additions and 4 deletions

View File

@@ -422,9 +422,9 @@ function init_select2(selector, type, data, selected, placeholder, config) {
// override init values
if (typeof config === 'object') {
const keys = Object.keys(config)
for (const key of keys) {
init[key] = config[key];
var keys = Object.keys(config);
for (var i = 0; i < keys.length; i++) {
init[keys[i]] = config[keys[i]];
}
}