Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authoralx-tuilmenau <32201363+alx-tuilmenau@users.noreply.github.com>2017-11-03 17:48:53 +0300
committerGitHub <noreply@github.com>2017-11-03 17:48:53 +0300
commit63950183f38c9f1a96f013307af5d5145eaa229f (patch)
tree7153a40a47d00d7a81517cef762849abb6ce2d58 /js
parent694e94462ff837b6acaece5c9375fbd9b3b9dab5 (diff)
Fix for IE11
IE11 does not unterstand Array.includes, replaced with Array.indexOf
Diffstat (limited to 'js')
-rw-r--r--js/apporder.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/apporder.js b/js/apporder.js
index e96e744..7362093 100644
--- a/js/apporder.js
+++ b/js/apporder.js
@@ -10,7 +10,7 @@ $(function () {
available_apps = {};
parent.find('li').each(function () {
var id = $(this).find('a').attr('href');
- if(hidden.includes(id)){
+ if(hidden.indexOf(id) > -1){
$(this).remove();
}
available_apps[id] = $(this);
@@ -18,7 +18,7 @@ $(function () {
//Remove hidden from order array
order = order.filter(function(e){
- return !hidden.includes(e);
+ return !(hidden.indexOf(e) > -1);
})
$.each(order, function (order, value) {
parent.prepend(available_apps[value]);