summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-05-04 20:27:40 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-05-04 20:27:40 +0200
commitfa6a67ccc1a7919aea2b18b445c0a31546184326 (patch)
treef2ca8c4852ccfadeba5a79016f8cbbc62ecb8a96
parent044ee7ead5b7b446b905bff4239ba503ac463863 (diff)
parenta9a9adc2172b5fd73c5bcf01183cbce77c53be3b (diff)
downloadnextcloud-server-fa6a67ccc1a7919aea2b18b445c0a31546184326.tar.gz
nextcloud-server-fa6a67ccc1a7919aea2b18b445c0a31546184326.zip
Merge pull request #15544 from rullzer/fix_15263
[WIP] Only show SSL table header if there are certificates
-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 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) {