Merge pull request #3894 from owncloud/ie8_compatibility_fixes

Ie8 compatibility fixes
This commit is contained in:
Thomas Müller 2013-07-01 11:57:29 -07:00
commit a20e9dee89
2 changed files with 11 additions and 2 deletions

View File

@ -20,6 +20,11 @@ OC.Settings.Apps = OC.Settings.Apps || {
page.find('span.score').html(app.score); page.find('span.score').html(app.score);
page.find('p.description').text(app.description); page.find('p.description').text(app.description);
page.find('img.preview').attr('src', app.preview); 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('small.externalapp').attr('style', 'visibility:visible');
page.find('span.author').text(app.author); page.find('span.author').text(app.author);
page.find('span.licence').text(app.licence); page.find('span.licence').text(app.licence);
@ -142,12 +147,16 @@ OC.Settings.Apps = OC.Settings.Apps || {
li.attr('data-id', entry.id); li.attr('data-id', entry.id);
var img= $('<img class="icon"/>').attr({ src: entry.icon}); var img= $('<img class="icon"/>').attr({ src: entry.icon});
var a=$('<a></a>').attr('href', entry.href); var a=$('<a></a>').attr('href', entry.href);
var filename=$('<span></span>') var filename=$('<span></span>');
filename.text(entry.name); filename.text(entry.name);
a.prepend(filename); a.prepend(filename);
a.prepend(img); a.prepend(img);
li.append(a); li.append(a);
container.append(li); container.append(li);
if (!SVGSupport() && entry.icon.match(/\.svg$/i)) {
$(img).addClass('svg');
replaceSVG();
}
} }
} }
} }

View File

@ -34,7 +34,7 @@
class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3> class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
<span class="score"></span> <span class="score"></span>
<p class="description"></p> <p class="description"></p>
<img src="" class="preview" /> <img src="" class="preview hidden" />
<p class="appslink hidden"><a href="#" target="_blank"><?php <p class="appslink hidden"><a href="#" target="_blank"><?php
p($l->t('See application page at apps.owncloud.com'));?></a></p> p($l->t('See application page at apps.owncloud.com'));?></a></p>
<p class="license hidden"><?php <p class="license hidden"><?php