summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-04-07 13:19:36 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-04-07 13:19:36 +0200
commit2b6e13d088b56ea3d201e24ace049f1a6656043a (patch)
tree1658ac750714b5be769422f686003f93b6c5039a /settings
parent1f8e6e78ccfb053388f9f4790ccbe74ef557889c (diff)
parentd61f6881267ac30f0c57995388c4655366ce0195 (diff)
downloadnextcloud-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.js9
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 = {