diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-10 22:24:30 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-05-04 19:08:43 +0200 |
commit | a9a9adc2172b5fd73c5bcf01183cbce77c53be3b (patch) | |
tree | c71aa387fc0f8b0006272d6e4f7aeb8ac279bac3 /settings/js/personal.js | |
parent | ed16127a8d2315ddf93be297aa2ca973d09add28 (diff) | |
download | nextcloud-server-a9a9adc2172b5fd73c5bcf01183cbce77c53be3b.tar.gz nextcloud-server-a9a9adc2172b5fd73c5bcf01183cbce77c53be3b.zip |
Only show SSL table header if there are certificates
Diffstat (limited to 'settings/js/personal.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 f3fcf614bfa..c9ecfdb4869 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -301,6 +301,10 @@ $(document).ready(function () { type: 'DELETE' }); row.remove(); + + if ($('#sslCertificate > tbody > tr').length === 0) { + $('#sslCertificate').hide(); + } return true; }); @@ -329,6 +333,7 @@ $(document).ready(function () { )); $('#sslCertificate tbody').append(row); + $('#sslCertificate').show(); }, fail: function () { OC.Notification.showTemporary( @@ -339,6 +344,10 @@ $(document).ready(function () { $('#rootcert_import_button').click(function () { $('#rootcert_import').click(); }); + + if ($('#sslCertificate > tbody > tr').length === 0) { + $('#sslCertificate').hide(); + } }); if (!OC.Encryption) { |