1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Contacts: No accordion in jqueryui?

This commit is contained in:
Thomas Tanghus 2012-11-29 03:10:34 +01:00
parent a2b52742fa
commit 077c3b8aab

View File

@ -1174,11 +1174,16 @@ OC.Contacts = OC.Contacts || {
self.hideActions();
});
$('h3.export,h3.import,h3.share').on('click keydown', function(event) {
this.$settings.find('h3').on('click keydown', function(event) {
if(wrongKey(event)) {
return;
}
if($(this).next('ul').is(':visible')) {
$(this).next('ul').slideUp();
return;
}
console.log('export');
$(this).parents('ul').first().find('ul:visible').slideUp();
$(this).next('ul').toggle('slow');
});