stop more context events where generic help overwrites menus
authorCornelius Weiß <c.weiss@metaways.de>
Mon, 24 Jul 2017 09:46:50 +0000 (11:46 +0200)
committerCornelius Weiss <c.weiss@metaways.de>
Mon, 24 Jul 2017 09:49:30 +0000 (11:49 +0200)
Change-Id: I5fdcc8ba2a3d929438234d6b24b0de9469baffc5
Reviewed-on: http://gerrit.tine20.com/customers/5284
Reviewed-by: Cornelius Weiss <c.weiss@metaways.de>
Tested-by: Cornelius Weiss <c.weiss@metaways.de>
tine20/Felamimail/js/TreePanel.js
tine20/Phone/js/PhoneTreePanel.js
tine20/Tinebase/js/widgets/ContentTypeTreePanel.js
tine20/Tinebase/js/widgets/grid/FilterStructureTreePanel.js
tine20/Tinebase/js/widgets/persistentfilter/PickerPanel.js

index a124d26..d142c58 100644 (file)
@@ -427,7 +427,9 @@ Ext.extend(Tine.Felamimail.TreePanel, Ext.tree.TreePanel, {
      */
     onContextMenu: function(node, event) {
         this.ctxNode = node;
-        
+
+        event.stopEvent();
+
         var folder = this.app.getFolderStore().getById(node.id),
             account = folder ? this.accountStore.getById(folder.get('account_id')) :
                                this.accountStore.getById(node.id);
index eaaa6ea..31c789d 100644 (file)
@@ -58,6 +58,7 @@ Tine.Phone.PhoneTreePanel = Ext.extend(Ext.tree.TreePanel, {
         });
         
         this.on('contextmenu', function(node, event){
+            event.stopEvent();
             this.ctxNode = node;
             if (node.id != 'phone-root') {
                 contextMenu.showAt(event.getXY());
index 340d4f7..0e16ddd 100644 (file)
@@ -191,6 +191,7 @@ Ext.extend(Tine.widgets.ContentTypeTreePanel, Ext.tree.TreePanel, {
                 });
           
                 child.on('contextmenu', function(node, event) {
+                    event.stopEvent();
                     if(node.leaf) {
                         this.ctxNode = node;
                         this['contextMenu' + modelName].showAt(event.getXY());
index 6863ea9..b0f5d51 100644 (file)
@@ -91,6 +91,7 @@ Tine.widgets.grid.FilterStructureTreePanel = Ext.extend(Ext.tree.TreePanel, {
     },
     
     onContextMenu: function(node, e) {
+        e.stopEvent();
         if (this.getRootNode().childNodes.length > 2 && node.id != 'addFilterPanel') {
             this.contextMenu.contextNode = node;
             this.contextMenu.showAt(e.getXY());
index e722a82..2980988 100644 (file)
@@ -306,7 +306,8 @@ Tine.widgets.persistentfilter.PickerPanel = Ext.extend(Ext.tree.TreePanel, {
         if (! node.attributes.isPersistentFilter) {
             return;
         }
-        
+
+        e.stopEvent();
         Tine.log.debug(node);
         
         var record = this.store.getById(node.id);