From 7f86d4af658abc558ca622456f6d6dc00db2fe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 3 Jan 2018 09:18:12 +0100 Subject: [PATCH] Fix icon rendering in apps management for IE11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/js/apps.js | 7 ++++--- settings/templates/apps.php | 3 --- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 7ec7309db1..b0cc1a11a2 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -247,8 +247,7 @@ OC.Settings.Apps = OC.Settings.Apps || { var page = $('#app-' + app.id); - // image loading kung-fu (IE doesn't properly scale SVGs, so disable app icons) - if (app.preview && !OC.Util.isIE()) { + if (app.preview) { var currentImage = new Image(); currentImage.src = app.preview; @@ -300,8 +299,10 @@ OC.Settings.Apps = OC.Settings.Apps || { img = ''; img += ''; } else { + var rnd = Math.floor((Math.random() * 100 )) + new Date().getSeconds() + new Date().getMilliseconds(); img = ''; - img += ''; + img += '' + img += ''; } return img; }, diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 0d313be6ed..d7b232b915 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -203,9 +203,6 @@ script(
- - -