From c489cd4d3a44db74c6dab3106dd1d15df33ec3cd Mon Sep 17 00:00:00 2001 From: Raghu Nayyar Date: Thu, 11 Aug 2016 12:59:57 +0530 Subject: [PATCH] Uses javascript to invert the SVGs. --- settings/js/apps.js | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 66c097e1257..d2411197c9c 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -196,14 +196,14 @@ OC.Settings.Apps = OC.Settings.Apps || { if (app.preview && !OC.Util.isIE()) { var currentImage = new Image(); currentImage.src = app.preview; - - currentImage.onload = function() { - page.find('.app-image') - .append(this) - .fadeIn(); - }; } + currentImage.onload = function() { + page.find('.app-image') + .append(OC.Settings.Apps.imageUrl(app.preview)) + .fadeIn(); + }; + // set group select properly if(OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') || OC.Settings.Apps.isType(app, 'authentication') || OC.Settings.Apps.isType(app, 'logging') || @@ -226,6 +226,17 @@ OC.Settings.Apps = OC.Settings.Apps || { } }, + /** + * Returns the image for apps listing + */ + + imageUrl : function (url) { + var img = ''; + img += ''; + img += ''; + return img; + }, + isType: function(app, type){ return app.types && app.types.indexOf(type) !== -1; }, -- 2.39.5