mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Prettyfied the slideup settings.
This commit is contained in:
parent
2fe8439bfb
commit
04fe455daf
@ -176,7 +176,11 @@ dl.addresscard .action { float: right; }
|
||||
.addressbooks-settings a.action:hover { opacity: 1; }
|
||||
.addressbooks-settings td.active, .addressbooks-settings td.action { width: 20px; }
|
||||
|
||||
#contacts-settings .settings { width: 20px; height: 20px; float: right; background:url('%webroot%/core/img/actions/settings.svg') no-repeat center; }
|
||||
#contacts-settings .settings {
|
||||
width: 20px; height: 20px;
|
||||
float: right;
|
||||
background:url('%webroot%/core/img/actions/settings.svg') no-repeat center;
|
||||
}
|
||||
#contacts-settings.open {
|
||||
height: auto;
|
||||
}
|
||||
@ -195,6 +199,7 @@ dl.addresscard .action { float: right; }
|
||||
width: 20em;
|
||||
z-index: 2;
|
||||
}
|
||||
#contacts-settings li,#contacts-settings li:hover { background-color: transparent; }
|
||||
|
||||
/* Single elements */
|
||||
#file_upload_target, #import_upload_target, #crop_target { display:none; }
|
||||
|
16
js/app.js
16
js/app.js
@ -856,15 +856,17 @@ OC.Contacts = OC.Contacts || {
|
||||
if(wrongKey(event)) {
|
||||
return;
|
||||
}
|
||||
self.$settings.toggleClass('open');
|
||||
var bodyListener = function(e) {
|
||||
if(self.$settings.find($(e.target)).length == 0) {
|
||||
self.$settings.switchClass('open', '');
|
||||
}
|
||||
}
|
||||
if(self.$settings.hasClass('open')) {
|
||||
$('body').bind('click', function(e) {
|
||||
if(self.$settings.find($(e.target)).length == 0) {
|
||||
self.$settings.toggleClass('open');
|
||||
}
|
||||
});
|
||||
self.$settings.switchClass('open', '');
|
||||
$('body').unbind('click', bodyListener);
|
||||
} else {
|
||||
$('body').unbind('click');
|
||||
self.$settings.switchClass('', 'open');
|
||||
$('body').bind('click', bodyListener);
|
||||
}
|
||||
});
|
||||
$('#contactphoto_fileupload').on('change', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user