Merge pull request #8716 from owncloud/forget-documentation

app manager forgets the documentation links workaround for #8081
This commit is contained in:
Volkan Gezer 2014-06-16 12:24:39 +02:00
commit 83b45926ee

View file

@ -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') {