mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-07 01:54:16 +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').data('checksum', this.data.NOTE[0]['checksum']);
|
||||||
$('#note').find('textarea').val(this.data.NOTE[0]['value']);
|
$('#note').find('textarea').val(this.data.NOTE[0]['value']);
|
||||||
$('#note').show();
|
$('#note').show();
|
||||||
|
$('#contacts_propertymenu a[data-type="NOTE"]').parent().hide();
|
||||||
} else {
|
} else {
|
||||||
$('#note').data('checksum', '');
|
$('#note').data('checksum', '');
|
||||||
$('#note').find('textarea').val('');
|
$('#note').find('textarea').val('');
|
||||||
//$('#note').hide();
|
$('#note').hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
loadSingleProperties:function() {
|
loadSingleProperties:function() {
|
||||||
@ -1437,19 +1438,19 @@ $(document).ready(function(){
|
|||||||
$('#file_upload_start').live('change',function(){
|
$('#file_upload_start').live('change',function(){
|
||||||
Contacts.UI.Card.uploadPhoto(this.files);
|
Contacts.UI.Card.uploadPhoto(this.files);
|
||||||
});
|
});
|
||||||
$('#contacts_details_photo').bind('dragover',function(event){
|
$('#contacts_details_photo_wrapper').bind('dragover',function(event){
|
||||||
console.log('dragover');
|
console.log('dragover');
|
||||||
$(event.target).css('background-color','red');
|
$(event.target).css('background-color','red');
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
$('#contacts_details_photo').bind('dragleave',function(event){
|
$('#contacts_details_photo_wrapper').bind('dragleave',function(event){
|
||||||
console.log('dragleave');
|
console.log('dragleave');
|
||||||
$(event.target).css('background-color','white');
|
$(event.target).css('background-color','white');
|
||||||
//event.stopPropagation();
|
//event.stopPropagation();
|
||||||
//event.preventDefault();
|
//event.preventDefault();
|
||||||
});
|
});
|
||||||
$('#contacts_details_photo').bind('drop',function(event){
|
$('#contacts_details_photo_wrapper').bind('drop',function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
console.log('drop');
|
console.log('drop');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user