diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2015-04-07 13:19:36 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2015-04-07 13:19:36 +0200 |
commit | 2b6e13d088b56ea3d201e24ace049f1a6656043a (patch) | |
tree | 1658ac750714b5be769422f686003f93b6c5039a /settings | |
parent | 1f8e6e78ccfb053388f9f4790ccbe74ef557889c (diff) | |
parent | d61f6881267ac30f0c57995388c4655366ce0195 (diff) | |
download | nextcloud-server-2b6e13d088b56ea3d201e24ace049f1a6656043a.tar.gz nextcloud-server-2b6e13d088b56ea3d201e24ace049f1a6656043a.zip |
Merge pull request #15345 from rullzer/fix_15263
[WIP] Only show SSL table header if there are certificates
Diffstat (limited to 'settings')
-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 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 = { |