From d61f6881267ac30f0c57995388c4655366ce0195 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 31 Mar 2015 13:00:24 +0200 Subject: [PATCH] Only show SSL table header if there are certificates --- settings/js/personal.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/settings/js/personal.js b/settings/js/personal.js index 302906702bd..314c57d8f77 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 = { -- 2.39.5