From 6f3b95052f8850adad171e15dd02f95c30d9f3df Mon Sep 17 00:00:00 2001 From: Volkan Gezer Date: Sun, 25 May 2014 22:14:46 +0200 Subject: [PATCH] app manager forgets the documentation links --- settings/js/apps.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 2539982be8..ed75e06c06 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("" + t('settings', 'User Documentation') + ""); 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("" + t('settings', 'Admin Documentation') + ""); 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(', '); } + else { + page.find('span.comma').remove(); + } + } + else { + page.find('p.documentation').hide(); } if (typeof(app.website) !== 'undefined') {