Skip to content
Snippets Groups Projects
Commit d110e603 authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Hide a ghost image on the apps management page

parent f3c4a37a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment