(js) Force copy of dragged contacts from remote AB
parent
7ddecd4006
commit
8e1a19dca2
1
NEWS
1
NEWS
|
@ -38,6 +38,7 @@ Bug fixes
|
|||
- [web] fixed mail composition from message headers (#4335)
|
||||
- [web] restore messages selection after automatic refresh (#4330)
|
||||
- [web] fixed path of destination mailbox in Sieve filter editor
|
||||
- [web] force copy of dragged contacts from global address books
|
||||
- [eas] hebrew folders encoding problem using EAS (#4240)
|
||||
- [eas] avoid sync requests for shared folders every second (#4275)
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
$rootScope.$emit('folder:dragstart', this.folder);
|
||||
}
|
||||
if (this.dragHasStarted) {
|
||||
if (ev.shiftKey)
|
||||
if (ev.shiftKey || this.folder.isRemote)
|
||||
this.helper.addClass('sg-draggable-helper--copy');
|
||||
else
|
||||
this.helper.removeClass('sg-draggable-helper--copy');
|
||||
|
@ -130,12 +130,16 @@
|
|||
|
||||
|
||||
onDragEnd: function(ev) {
|
||||
var action = 'move';
|
||||
|
||||
this.startPosition = null;
|
||||
$document.off('mousemove', this.bindedOnDrag);
|
||||
|
||||
if (this.dragHasStarted) {
|
||||
if (ev.shiftKey || this.folder.isRemote)
|
||||
action = 'copy';
|
||||
$log.debug('emit folder:dragend');
|
||||
$rootScope.$emit('folder:dragend', this.folder, ev.shiftKey?'copy':'move');
|
||||
$rootScope.$emit('folder:dragend', this.folder, action);
|
||||
this.dragHasStarted = false;
|
||||
this.helper.addClass('ng-hide');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue