mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
(js) Force copy of dragged contacts from remote AB
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user