Work around #4630 to fix license showing

This commit is contained in:
kondou 2013-08-28 22:12:01 +02:00
parent 584857de69
commit 6c7efd5dac

View file

@ -27,7 +27,16 @@ OC.Settings.Apps = OC.Settings.Apps || {
}
page.find('small.externalapp').attr('style', 'visibility:visible');
page.find('span.author').text(app.author);
page.find('span.licence').text(app.license);
// FIXME licenses of downloaded apps go into app.licence, licenses of not-downloaded apps into app.license
if (typeof(app.licence) !== 'undefined') {
var applicense = app.licence;
} else if (typeof(app.license) !== 'undefined') {
var applicense = app.license;
} else {
var applicense = '';
}
page.find('span.licence').text(applicense);
if (app.update !== false) {
page.find('input.update').show();