summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-06-28 21:53:56 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-06-28 21:53:56 +0300
commitd110e60316f7dd28a2b5876e8911f983fea0883c (patch)
treedde0b1f9dcc956bf077a95b4a8eba7cadef3b40a /settings
parentf3c4a37a78763df5481b01be936f73ca70426ed3 (diff)
downloadnextcloud-server-d110e60316f7dd28a2b5876e8911f983fea0883c.tar.gz
nextcloud-server-d110e60316f7dd28a2b5876e8911f983fea0883c.zip
Hide a ghost image on the apps management page
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js5
-rw-r--r--settings/templates/apps.php2
2 files changed, 6 insertions, 1 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);
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index 0903b9bd5c4..d60fd82f917 100644
--- a/settings/templates/apps.php
+++ b/settings/templates/apps.php
@@ -34,7 +34,7 @@
class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
<span class="score"></span>
<p class="description"></p>
- <img src="" class="preview" />
+ <img src="" class="preview hidden" />
<p class="appslink hidden"><a href="#" target="_blank"><?php
p($l->t('See application page at apps.owncloud.com'));?></a></p>
<p class="license hidden"><?php