Work around #4630 to fix license showing
This commit is contained in:
parent
584857de69
commit
6c7efd5dac
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue