[Pkg-owncloud-commits] [owncloud] 20/223: app manager forgets the documentation links
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 6f3b95052f8850adad171e15dd02f95c30d9f3df
Author: Volkan Gezer <volkangezer at gmail.com>
Date: Sun May 25 22:14:46 2014 +0200
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 2539982..ed75e06 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') {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list