Only show SSL table header if there are certificates

This commit is contained in:
Roeland Jago Douma 2015-03-31 13:00:24 +02:00
parent 1d06d93d27
commit d61f688126
1 changed files with 9 additions and 0 deletions

View File

@ -335,6 +335,10 @@ $(document).ready(function () {
cert: row.data('name')
});
row.remove();
if ($('#sslCertificate > tbody > tr').length === 0) {
$('#sslCertificate').hide();
}
return true;
});
@ -362,12 +366,17 @@ $(document).ready(function () {
));
$('#sslCertificate tbody').append(row);
$('#sslCertificate').show();
}
});
$('#rootcert_import_button').click(function () {
$('#rootcert_import').click();
});
if ($('#sslCertificate > tbody > tr').length === 0) {
$('#sslCertificate').hide();
}
});
OC.Encryption = {