]> source.dussan.org Git - nextcloud-server.git/commitdiff
Hide a ghost image on the apps management page
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Fri, 28 Jun 2013 18:53:56 +0000 (21:53 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 1 Jul 2013 20:11:36 +0000 (23:11 +0300)
settings/js/apps.js
settings/templates/apps.php

index 35d8ca47d12835c822f1044c97a25ececa640b40..caf47c343fb962088c88689bd924dcd0b4c00d37 100644 (file)
@@ -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);
index d3639cbab34915ad1690a3fd7c5ff5d84ef89f08..254464d37ae1104241a0d278f94876aef60c5a17 100644 (file)
@@ -29,7 +29,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