Skip to content

Commit

Permalink
Merge pull request nextcloud#779 from nextcloud/slideup_addtowebsite
Browse files Browse the repository at this point in the history
Make 'Add to your website' toggleable
  • Loading branch information
schiessle authored Aug 9, 2016
2 parents 9a1e9c7 + 9db34bc commit 253152e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/federatedfilesharing/js/settings-personal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

});

0 comments on commit 253152e

Please sign in to comment.