Merge pull request #8716 from owncloud/forget-documentation
app manager forgets the documentation links workaround for #8081
This commit is contained in:
commit
83b45926ee
1 changed files with 16 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue