summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
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();
+ }
});
});