Make 'Add to your website' toggleable

This commit is contained in:
Roeland Jago Douma 2016-08-09 12:21:10 +02:00
parent 25a72c8099
commit 1d6448beb1
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 5 additions and 1 deletions

View 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();
}
});
});