summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/personal.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index b269ebae3bc..30d7f5e9388 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -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 = {