|
|
|
|
@ -37,6 +37,24 @@ OC.Settings.Apps = OC.Settings.Apps || { |
|
|
|
|
} |
|
|
|
|
page.find('span.licence').text(appLicense); |
|
|
|
|
|
|
|
|
|
var userDocumentation = false; |
|
|
|
|
var adminDocumentation = false; |
|
|
|
|
if (typeof(app.documentation.user) !== 'undefined') { |
|
|
|
|
userDocumentation = true; |
|
|
|
|
page.find('span.userDocumentation').html("<a href='" + app.documentation.user + "'>" + t('settings', 'User Documentation') + "</a>"); |
|
|
|
|
page.find('p.documentation').show(); |
|
|
|
|
} |
|
|
|
|
if (typeof(app.documentation.admin) !== 'undefined') { |
|
|
|
|
adminDocumentation = true; |
|
|
|
|
page.find('span.adminDocumentation').html("<a href='" + app.documentation.admin + "'>" + t('settings', 'Admin Documentation') + "</a>"); |
|
|
|
|
page.find('p.documentation').show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(userDocumentation && adminDocumentation) { |
|
|
|
|
page.find('span.userDocumentation').after(', '); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (app.update !== false) { |
|
|
|
|
page.find('input.update').show(); |
|
|
|
|
page.find('input.update').data('appid', app.id); |
|
|
|
|
@ -110,7 +128,7 @@ OC.Settings.Apps = OC.Settings.Apps || { |
|
|
|
|
element.val(t('settings','Disable')); |
|
|
|
|
} |
|
|
|
|
},'json') |
|
|
|
|
.fail(function() {
|
|
|
|
|
.fail(function() { |
|
|
|
|
OC.Settings.Apps.showErrorMessage(t('settings', 'Error while enabling app')); |
|
|
|
|
appitem.data('errormsg', t('settings', 'Error while enabling app')); |
|
|
|
|
appitem.data('active',false); |
|
|
|
|
|