diff --git a/apps/federatedfilesharing/js/settings-personal.js b/apps/federatedfilesharing/js/settings-personal.js index 14a9b7bbfa7b3ee0a7b210ba5fc80a0b8d52614f..031a3c9617a2e19ce493a2ae76270d297d2a2f7a 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(); + } }); });