From d8e8096eba2f7da4f13bd2867c011f0fd74c86d8 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Tue, 9 Aug 2016 12:21:10 +0200
Subject: [PATCH] Make 'Add to your website' toggleable

---
 apps/federatedfilesharing/js/settings-personal.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/apps/federatedfilesharing/js/settings-personal.js b/apps/federatedfilesharing/js/settings-personal.js
index 14a9b7bbfa7..031a3c9617a 100644
--- a/apps/federatedfilesharing/js/settings-personal.js
+++ b/apps/federatedfilesharing/js/settings-personal.js
@@ -13,7 +13,11 @@ $(document).ready(function() {
 	});
 
 	$('#oca-files-sharing-add-to-your-website').click(function() {
-		$('#oca-files-sharing-add-to-your-website-expanded').slideDown();
+		if ($('#oca-files-sharing-add-to-your-website-expanded').is(':visible')) {
+			$('#oca-files-sharing-add-to-your-website-expanded').slideUp();
+		} else {
+			$('#oca-files-sharing-add-to-your-website-expanded').slideDown();
+		}
 	});
 
 });
-- 
GitLab