[Pkg-owncloud-commits] [owncloud] 56/122: Only show SSL table header if there are certificates

David Prévot taffit at moszumanska.debian.org
Sat May 9 00:00:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit a9a9adc2172b5fd73c5bcf01183cbce77c53be3b
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date:   Fri Apr 10 22:24:30 2015 +0200

    Only show SSL table header if there are certificates
---
 settings/js/personal.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/settings/js/personal.js b/settings/js/personal.js
index f3fcf61..c9ecfdb 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list