summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-03-31 13:00:24 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-03-31 13:00:24 +0200
commitd61f6881267ac30f0c57995388c4655366ce0195 (patch)
tree8c4ca03437ed2f303ac4bd3f091e5dd0bfb166e6 /settings/js
parent1d06d93d271210793baf575414ff0dd8f576dae0 (diff)
downloadnextcloud-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.js9
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 = {