Merge pull request #779 from nextcloud/slideup_addtowebsite

Make 'Add to your website' toggleable
This commit is contained in:
Björn Schießle 2016-08-09 13:44:56 +02:00 committed by GitHub
commit 5253af5664

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