Skip to content

Commit

Permalink
Merge pull request owncloud#15544 from rullzer/fix_15263
Browse files Browse the repository at this point in the history
[WIP] Only show SSL table header if there are certificates
  • Loading branch information
jancborchardt committed May 4, 2015
2 parents 044ee7e + a9a9adc commit fa6a67c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions settings/js/personal.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ $(document).ready(function () {
type: 'DELETE'
});
row.remove();

if ($('#sslCertificate > tbody > tr').length === 0) {
$('#sslCertificate').hide();
}
return true;
});

Expand Down Expand Up @@ -329,6 +333,7 @@ $(document).ready(function () {
));

$('#sslCertificate tbody').append(row);
$('#sslCertificate').show();
},
fail: function () {
OC.Notification.showTemporary(
Expand All @@ -339,6 +344,10 @@ $(document).ready(function () {
$('#rootcert_import_button').click(function () {
$('#rootcert_import').click();
});

if ($('#sslCertificate > tbody > tr').length === 0) {
$('#sslCertificate').hide();
}
});

if (!OC.Encryption) {
Expand Down

0 comments on commit fa6a67c

Please sign in to comment.