diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-06-28 21:53:56 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-06-28 21:53:56 +0300 |
commit | d110e60316f7dd28a2b5876e8911f983fea0883c (patch) | |
tree | dde0b1f9dcc956bf077a95b4a8eba7cadef3b40a /settings/js | |
parent | f3c4a37a78763df5481b01be936f73ca70426ed3 (diff) | |
download | nextcloud-server-d110e60316f7dd28a2b5876e8911f983fea0883c.tar.gz nextcloud-server-d110e60316f7dd28a2b5876e8911f983fea0883c.zip |
Hide a ghost image on the apps management page
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 9c1604cfcd9..bdeddfb84c2 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); |