Arthur Bogaart pushed to branch master at cms-community / 
hippo-addon-channel-manager


Commits:
33dea7ab by Arthur Bogaart at 2016-06-14T17:01:30+02:00
CHANNELMGR-750 Don't drop if source container does not exist anymore

- - - - -


1 changed file:

- frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.js
=====================================
--- a/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.js
+++ b/frontend-ng/src/angularjs/channel/hippoIframe/dragDrop.service.js
@@ -80,7 +80,7 @@ export class DragDropService {
         mirrorContainer: $(MIRROR_WRAPPER_SELECTOR)[0],
         direction: (el, target) => this._getDragDirection(target),
         moves: (el, source) => this._isContainerEnabled(source),
-        accepts: (el, target) => this._isContainerEnabled(target),
+        accepts: (el, target, source) => this._isContainerEnabled(target) && 
this._isContainerEnabled(source),
       });
       this.drake.on('drag', () => this._onStartDrag());
       this.drake.on('cloned', (clone, original) => 
this._onMirrorCreated(clone, original));



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/33dea7abbcd192dfc70e8936bbb65466908645ea
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to