Merge pull request #4631 from owncloud/hotfix_4630

Work around #4630 to fix license showing
This commit is contained in:
Morris Jobke 2013-08-28 15:42:06 -07:00
commit af6eb9d41b
1 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,15 @@ 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
var appLicense = '';
if (typeof(app.licence) !== 'undefined') {
appLicense = app.licence;
} else if (typeof(app.license) !== 'undefined') {
appLicense = app.license;
}
page.find('span.licence').text(appLicense);
if (app.update !== false) {
page.find('input.update').show();