aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 12:21:10 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 12:21:10 +0200
commitd8e8096eba2f7da4f13bd2867c011f0fd74c86d8 (patch)
tree14b9c2c9750b3f1d6e174bf97ab65616a2318986 /apps/federatedfilesharing/js
parent3a26def7cf446bbf8bb019ebc4ac30cfe4d27151 (diff)
downloadnextcloud-server-d8e8096eba2f7da4f13bd2867c011f0fd74c86d8.tar.gz
nextcloud-server-d8e8096eba2f7da4f13bd2867c011f0fd74c86d8.zip
Make 'Add to your website' toggleable
Diffstat (limited to 'apps/federatedfilesharing/js')
-rw-r--r--apps/federatedfilesharing/js/settings-personal.js6
1 files changed, 5 insertions, 1 deletions
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();
+ }
});
});