0013374: allow to move nodes
[tine20] / tine20 / MailFiler / js / NodeTreePanel.js
1 /*
2  * Tine 2.0
3  * 
4  * @package     Tinebase
5  * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
6  * @author      Philipp Schüle <p.schuele@metaways.de>
7  * @copyright   Copyright (c) 2010-2017 Metaways Infosystems GmbH (http://www.metaways.de)
8  */
9
10 Ext.ns('Tine.MailFiler');
11
12 require('./nodeContextMenu');
13
14 Tine.MailFiler.NodeTreePanel = Ext.extend(Tine.Filemanager.NodeTreePanel, {
15     recordClass : Tine.MailFiler.Model.Node,
16
17     /**
18      * initiates tree context menus
19      *
20      * @private
21      */
22     initContextMenu: function() {
23         this.ctxMenu = Tine.MailFiler.nodeContextMenu.getMenu({
24             actionMgr: Tine.MailFiler.nodeActionsMgr,
25             nodeName: this.recordClass.getContainerName(),
26             actions: ['reload', 'createFolder', 'delete', 'rename', 'move' , 'edit'],
27             scope: this,
28             backend: 'MailFiler',
29             backendModel: 'Node'
30         });
31
32         this.actionUpdater = new Tine.widgets.ActionUpdater({
33             actions: this.ctxMenu.items
34         });
35     }
36 });