]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make 'Add to your website' toggleable 779/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 9 Aug 2016 10:21:10 +0000 (12:21 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 9 Aug 2016 10:21:10 +0000 (12:21 +0200)
apps/federatedfilesharing/js/settings-personal.js

index 14a9b7bbfa7b3ee0a7b210ba5fc80a0b8d52614f..031a3c9617a2e19ce493a2ae76270d297d2a2f7a 100644 (file)
@@ -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();
+               }
        });
 
 });