1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Contacts: Don't collapse settings sections.

This commit is contained in:
Thomas Tanghus 2013-02-08 15:23:52 +01:00
parent 34a2761f1b
commit f4aac2f17a
2 changed files with 9 additions and 2 deletions

View File

@ -363,6 +363,11 @@ ul.propertylist { width: 450px; }
#contacts-settings li,#contacts-settings li:hover { background-color: transparent; white-space: nowrap; }
#contacts-settings a.action:not(.settings) { width: 16px; height: 16px; }
#contacts-settings .actions { float: right; }
#contacts-settings h2 {
text-indent: .5em;
font-weight: bold;
font-size: 1.2em;
}
/* Single elements */
#file_upload_target, #import_upload_target, #crop_target { display:none; }

View File

@ -567,6 +567,8 @@ OC.Contacts = OC.Contacts || {
self.$settings.switchClass('open', '');
$('body').unbind('click', bodyListener);
} else {
// FIXME: Settings needs to be refactored
self.$settings.find('h2').trigger('click');
self.$settings.switchClass('', 'open');
$('body').bind('click', bodyListener);
}
@ -773,12 +775,12 @@ OC.Contacts = OC.Contacts || {
self.openContact($(this).data('id'));
});
this.$settings.find('h3').on('click keydown', function(event) {
this.$settings.find('h2').on('click keydown', function(event) {
if(wrongKey(event)) {
return;
}
if($(this).next('ul').is(':visible')) {
$(this).next('ul').slideUp();
//$(this).next('ul').slideUp();
return;
}
console.log('settings');