Skip to content

Commit

Permalink
Make 'Add to your website' toggleable
Browse files Browse the repository at this point in the history
  • Loading branch information
rullzer committed Aug 9, 2016
1 parent 8b1fd4b commit 9db34bc
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 9db34bc

Please sign in to comment.