From: Roeland Jago Douma Date: Tue, 9 Aug 2016 10:21:10 +0000 (+0200) Subject: Make 'Add to your website' toggleable X-Git-Tag: v11.0RC2~866^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d8e8096eba2f7da4f13bd2867c011f0fd74c86d8;p=nextcloud-server.git Make 'Add to your website' toggleable --- 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(); + } }); });