diff options
author | Volkan Gezer <volkangezer@gmail.com> | 2014-05-25 22:14:46 +0200 |
---|---|---|
committer | Volkan Gezer <volkangezer@gmail.com> | 2014-06-06 15:22:02 +0200 |
commit | 6f3b95052f8850adad171e15dd02f95c30d9f3df (patch) | |
tree | 3a3ec77bd816251788a18a204af5424868b4f36e /settings/js/apps.js | |
parent | 1a519b851d3a867d13c9fc25b0cff6ec9cb29642 (diff) | |
download | nextcloud-server-6f3b95052f8850adad171e15dd02f95c30d9f3df.tar.gz nextcloud-server-6f3b95052f8850adad171e15dd02f95c30d9f3df.zip |
app manager forgets the documentation links
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 2539982be83..ed75e06c066 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -45,15 +45,30 @@ OC.Settings.Apps = OC.Settings.Apps || { page.find('span.userDocumentation').html("<a id='userDocumentation' href='" + app.documentation.user + "'>" + t('settings', 'User Documentation') + "</a>"); page.find('p.documentation').show(); } + else { + page.find('span.userDocumentation').empty(); + userDocumentation = false; + } if (typeof(app.documentation.admin) !== 'undefined') { adminDocumentation = true; page.find('span.adminDocumentation').html("<a id='adminDocumentation' href='" + app.documentation.admin + "'>" + t('settings', 'Admin Documentation') + "</a>"); page.find('p.documentation').show(); } + else { + page.find('span.adminDocumentation').empty(); + adminDocumentation = false; + } if(userDocumentation && adminDocumentation) { - page.find('span.userDocumentation').after(', '); + page.find('span.comma').remove(); + page.find('span.userDocumentation').after('<span class="comma">, </span>'); } + else { + page.find('span.comma').remove(); + } + } + else { + page.find('p.documentation').hide(); } if (typeof(app.website) !== 'undefined') { |