Skip to content
Snippets Groups Projects
Commit af6eb9d4 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #4631 from owncloud/hotfix_4630

Work around #4630 to fix license showing
parents 81cab5ad 1d04843e
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,15 @@ OC.Settings.Apps = OC.Settings.Apps || { ...@@ -27,7 +27,15 @@ OC.Settings.Apps = OC.Settings.Apps || {
} }
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.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) { if (app.update !== false) {
page.find('input.update').show(); page.find('input.update').show();
......
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