details:   https://code.openbravo.com/erp/devel/pi/rev/19db32dec44e
changeset: 18075:19db32dec44e
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Fri Sep 28 14:25:46 2012 +0200
summary:   Fixes issue 21787: Contextual menu not shown in grid is no parent is 
selected

The contextual menu will not be shown in grid view is no parent is selected, 
unless the current view is located in the header tab.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r c8550f22b989 -r 19db32dec44e 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Thu Sep 27 18:17:32 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Fri Sep 28 14:25:46 2012 +0200
@@ -307,6 +307,11 @@
       });
       this.contextMenu.show = function () {
         var me = this;
+        // If not in the header tab, and no parent is selected, do now show 
the context menu
+        // See issue https://issues.openbravo.com/view.php?id=21787
+        if (!grid.view.hasValidState()) {
+          return;
+        }
         if (!grid.view.isActiveView()) {
           // The view where the context menu is being opened must be active
           // See issue https://issues.openbravo.com/view.php?id=20872

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to