From d110e60316f7dd28a2b5876e8911f983fea0883c Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Fri, 28 Jun 2013 21:53:56 +0300 Subject: [PATCH] Hide a ghost image on the apps management page --- settings/js/apps.js | 5 +++++ settings/templates/apps.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 9c1604cfcd..bdeddfb84c 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -20,6 +20,11 @@ OC.Settings.Apps = OC.Settings.Apps || { page.find('span.score').html(app.score); page.find('p.description').text(app.description); page.find('img.preview').attr('src', app.preview); + if (app.preview && app.preview.length) { + page.find('img.preview').show(); + } else { + page.find('img.preview').hide(); + } page.find('small.externalapp').attr('style', 'visibility:visible'); page.find('span.author').text(app.author); page.find('span.licence').text(app.licence); diff --git a/settings/templates/apps.php b/settings/templates/apps.php index 0903b9bd5c..d60fd82f91 100644 --- a/settings/templates/apps.php +++ b/settings/templates/apps.php @@ -34,7 +34,7 @@ class="version">

- +