diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-31 13:00:24 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-31 13:00:24 +0200 |
commit | d61f6881267ac30f0c57995388c4655366ce0195 (patch) | |
tree | 8c4ca03437ed2f303ac4bd3f091e5dd0bfb166e6 /settings/js | |
parent | 1d06d93d271210793baf575414ff0dd8f576dae0 (diff) | |
download | nextcloud-server-d61f6881267ac30f0c57995388c4655366ce0195.tar.gz nextcloud-server-d61f6881267ac30f0c57995388c4655366ce0195.zip |
Only show SSL table header if there are certificates
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 = { |