0013374: allow to move nodes
authorPhilipp Schüle <p.schuele@metaways.de>
Tue, 8 Aug 2017 08:46:46 +0000 (10:46 +0200)
committerMichael Spahn <m.spahn@metaways.de>
Wed, 9 Aug 2017 09:25:14 +0000 (11:25 +0200)
https://forge.tine20.org/view.php?id=13374

Change-Id: I550040b75205f55a7ea20e66f65e553a2a5a448c
Reviewed-on: http://gerrit.tine20.com/customers/5416
Reviewed-by: Michael Spahn <m.spahn@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Filemanager/js/NodeTreePanel.js
tine20/MailFiler/js/NodeGridPanel.js
tine20/MailFiler/js/NodeTreePanel.js

index 4724e73..094ffb1 100644 (file)
@@ -203,7 +203,7 @@ Tine.Filemanager.NodeTreePanel = Ext.extend(Tine.widgets.container.TreePanel, {
             nodes = [dropEvent.data.node];
         }
 
             nodes = [dropEvent.data.node];
         }
 
-        Tine.Filemanager.fileRecordBackend.copyNodes(nodes, target, !(dropEvent.rawEvent.ctrlKey  || dropEvent.rawEvent.altKey));
+        Tine[this.appName].fileRecordBackend.copyNodes(nodes, target, !(dropEvent.rawEvent.ctrlKey  || dropEvent.rawEvent.altKey));
 
         dropEvent.dropStatus = true;
         return true;
 
         dropEvent.dropStatus = true;
         return true;
index 6d2ac02..b25df55 100644 (file)
@@ -30,7 +30,6 @@ require('./nodeActions');
  */
 Tine.MailFiler.NodeGridPanel = Ext.extend(Tine.Filemanager.NodeGridPanel, {
 
  */
 Tine.MailFiler.NodeGridPanel = Ext.extend(Tine.Filemanager.NodeGridPanel, {
 
-    enableDD: false,
     recordClass: Tine.MailFiler.Model.Node,
 
     /**
     recordClass: Tine.MailFiler.Model.Node,
 
     /**
index b0e809a..70a43ce 100644 (file)
@@ -13,7 +13,6 @@ require('./nodeContextMenu');
 
 Tine.MailFiler.NodeTreePanel = Ext.extend(Tine.Filemanager.NodeTreePanel, {
     recordClass : Tine.MailFiler.Model.Node,
 
 Tine.MailFiler.NodeTreePanel = Ext.extend(Tine.Filemanager.NodeTreePanel, {
     recordClass : Tine.MailFiler.Model.Node,
-    enableDD: false,
 
     /**
      * initiates tree context menus
 
     /**
      * initiates tree context menus
@@ -24,7 +23,7 @@ Tine.MailFiler.NodeTreePanel = Ext.extend(Tine.Filemanager.NodeTreePanel, {
         this.ctxMenu = Tine.MailFiler.nodeContextMenu.getMenu({
             actionMgr: Tine.MailFiler.nodeActionsMgr,
             nodeName: this.recordClass.getContainerName(),
         this.ctxMenu = Tine.MailFiler.nodeContextMenu.getMenu({
             actionMgr: Tine.MailFiler.nodeActionsMgr,
             nodeName: this.recordClass.getContainerName(),
-            actions: ['reload', 'createFolder', 'delete', 'rename', 'move' /* ? */, 'edit'],
+            actions: ['reload', 'createFolder', 'delete', 'rename', 'move' , 'edit'],
             scope: this,
             backend: 'MailFiler',
             backendModel: 'Node'
             scope: this,
             backend: 'MailFiler',
             backendModel: 'Node'