diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-17 14:05:39 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-17 14:56:25 +0100 |
commit | bf0471a92ed4fca8fe3344839acd83d6918cf566 (patch) | |
tree | 8c6a944495a86850eb31bd7dd290c100eebfb1df /settings/js | |
parent | 1df6bf997a5f4bb44902d237d07bd06eccf6a9fc (diff) | |
download | nextcloud-server-bf0471a92ed4fca8fe3344839acd83d6918cf566.tar.gz nextcloud-server-bf0471a92ed4fca8fe3344839acd83d6918cf566.zip |
show link to app documentation
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/apps.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index a55c55e24cf..1d05d01e1f2 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -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); |