Browse Source

Fix gh-2435 configmgr - Close context menu on top doc click

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
Gleb Aronsky 13 years ago
parent
commit
046bce63fd

+ 2 - 0
esp/files/scripts/configmgr/configmgr.js

@@ -1609,6 +1609,8 @@ function createMultiColTreeCtrlForComp(rows, compName, subRecordIndex) {
         lazyload: true
       });
 
+      top.document.ContextMenu = oContextMenu;
+
       oContextMenu.dt = dt;
       oContextMenu.subscribe("beforeShow", onContextMenuBeforeShow);
       dt.expandRecord = function(id) {

+ 3 - 0
esp/files/scripts/configmgr/navtree.js

@@ -51,6 +51,9 @@
         invokeWiz = false;
       }
       document.getElementById('top1').style.display = 'none';
+      document.getElementById('top1').addEventListener("click", function() {
+            top.document.ContextMenu.clearContent()  } );
+
       getWaitDlg().show();
       var params = "queryType=customType::params=environment,laststarted,defenvfile,username,wizops";