summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2018-02-28 16:16:25 (GMT)
committerMark Carver2018-02-28 16:16:25 (GMT)
commit8ccb043e17c81c5d0d5110939477346e33a2eec9 (patch)
tree264114af2cb4981bb7561bbb8b2136edd47843fb
parent698af8d94fb97e9dbc39af77757ea9f6a088d258 (diff)
Issue #2948623 by f1mishutka: Object.values() function is not supported on older browsers
-rw-r--r--js/attributes.js2
-rw-r--r--js/modal.jquery.ui.bridge.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/attributes.js b/js/attributes.js
index 3b11bf3..00ee985 100644
--- a/js/attributes.js
+++ b/js/attributes.js
@@ -346,7 +346,7 @@
identifier = identifier.replace('__', '#DOUBLE_UNDERSCORE#', identifier);
}
- identifier = identifier.replace(Object.keys(filter), Object.values(filter), identifier);
+ identifier = identifier.replace(Object.keys(filter), Object.keys(filter).map(function(key) { return filter[key]; }), identifier);
if (filter['__'] === void 0) {
identifier = identifier.replace('#DOUBLE_UNDERSCORE#', '__', identifier);
diff --git a/js/modal.jquery.ui.bridge.js b/js/modal.jquery.ui.bridge.js
index 250f986..88d5ce4 100644
--- a/js/modal.jquery.ui.bridge.js
+++ b/js/modal.jquery.ui.bridge.js
@@ -472,7 +472,7 @@
attributes[button.disabled ? 'set' :'remove']('disabled', 'disabled');
if (button.classes) {
- attributes.addClass(Object.values(button.classes));
+ attributes.addClass(Object.keys(button.classes).map(function(key) { return button.classes[key]; }));
}
if (button['class']) {
attributes.addClass(button['class']);