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:
parent
34a2761f1b
commit
f4aac2f17a
@ -363,6 +363,11 @@ ul.propertylist { width: 450px; }
|
|||||||
#contacts-settings li,#contacts-settings li:hover { background-color: transparent; white-space: nowrap; }
|
#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 a.action:not(.settings) { width: 16px; height: 16px; }
|
||||||
#contacts-settings .actions { float: right; }
|
#contacts-settings .actions { float: right; }
|
||||||
|
#contacts-settings h2 {
|
||||||
|
text-indent: .5em;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
/* Single elements */
|
/* Single elements */
|
||||||
#file_upload_target, #import_upload_target, #crop_target { display:none; }
|
#file_upload_target, #import_upload_target, #crop_target { display:none; }
|
||||||
|
@ -567,6 +567,8 @@ OC.Contacts = OC.Contacts || {
|
|||||||
self.$settings.switchClass('open', '');
|
self.$settings.switchClass('open', '');
|
||||||
$('body').unbind('click', bodyListener);
|
$('body').unbind('click', bodyListener);
|
||||||
} else {
|
} else {
|
||||||
|
// FIXME: Settings needs to be refactored
|
||||||
|
self.$settings.find('h2').trigger('click');
|
||||||
self.$settings.switchClass('', 'open');
|
self.$settings.switchClass('', 'open');
|
||||||
$('body').bind('click', bodyListener);
|
$('body').bind('click', bodyListener);
|
||||||
}
|
}
|
||||||
@ -773,12 +775,12 @@ OC.Contacts = OC.Contacts || {
|
|||||||
self.openContact($(this).data('id'));
|
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)) {
|
if(wrongKey(event)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($(this).next('ul').is(':visible')) {
|
if($(this).next('ul').is(':visible')) {
|
||||||
$(this).next('ul').slideUp();
|
//$(this).next('ul').slideUp();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('settings');
|
console.log('settings');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user