mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Contacts: Fixed contact photo drag'n'drop upload - again...
This commit is contained in:
parent
afcc6e905e
commit
994934a0e3
@ -387,10 +387,11 @@ Contacts={
|
||||
$('#note').data('checksum', this.data.NOTE[0]['checksum']);
|
||||
$('#note').find('textarea').val(this.data.NOTE[0]['value']);
|
||||
$('#note').show();
|
||||
$('#contacts_propertymenu a[data-type="NOTE"]').parent().hide();
|
||||
} else {
|
||||
$('#note').data('checksum', '');
|
||||
$('#note').find('textarea').val('');
|
||||
//$('#note').hide();
|
||||
$('#note').hide();
|
||||
}
|
||||
},
|
||||
loadSingleProperties:function() {
|
||||
@ -1437,19 +1438,19 @@ $(document).ready(function(){
|
||||
$('#file_upload_start').live('change',function(){
|
||||
Contacts.UI.Card.uploadPhoto(this.files);
|
||||
});
|
||||
$('#contacts_details_photo').bind('dragover',function(event){
|
||||
$('#contacts_details_photo_wrapper').bind('dragover',function(event){
|
||||
console.log('dragover');
|
||||
$(event.target).css('background-color','red');
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
$('#contacts_details_photo').bind('dragleave',function(event){
|
||||
$('#contacts_details_photo_wrapper').bind('dragleave',function(event){
|
||||
console.log('dragleave');
|
||||
$(event.target).css('background-color','white');
|
||||
//event.stopPropagation();
|
||||
//event.preventDefault();
|
||||
});
|
||||
$('#contacts_details_photo').bind('drop',function(event){
|
||||
$('#contacts_details_photo_wrapper').bind('drop',function(event){
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
console.log('drop');
|
||||
|
Loading…
x
Reference in New Issue
Block a user