aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2016-08-09 13:44:56 +0200
committerGitHub <noreply@github.com>2016-08-09 13:44:56 +0200
commit5253af56649c0e5dd251908859eb9365666d93fd (patch)
treeed7181e3874feb7d309393b9b638ddfb8b7e2fe4 /apps
parentc04b0364acecc3b9c9bf5ee37d0e7db5b5b5234a (diff)
parentd8e8096eba2f7da4f13bd2867c011f0fd74c86d8 (diff)
downloadnextcloud-server-5253af56649c0e5dd251908859eb9365666d93fd.tar.gz
nextcloud-server-5253af56649c0e5dd251908859eb9365666d93fd.zip
Merge pull request #779 from nextcloud/slideup_addtowebsite
Make 'Add to your website' toggleable
Diffstat (limited to 'apps')
-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();
+ }
});
});