summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing')
-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 052ff5b4ed6..f89022dc8a0 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();
+ }
});
// Clipboard!