From 9afdbe2fbcabfcf9400e4b390f6788b26d664672 Mon Sep 17 00:00:00 2001 From: denise Date: Fri, 20 Apr 2012 10:03:12 -0400 Subject: [PATCH] CC-3330: Regression in library behavior: left click anywhere in a row should bring up menu, right click anywhere in row should bring up metadata -consider it wrapped --- airtime_mvc/public/js/contextmenu/jquery.contextMenu.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js b/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js index ddc699160..4f97a0dc3 100755 --- a/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js +++ b/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js @@ -306,12 +306,14 @@ var // currently active contextMenu trigger e.stopImmediatePropagation(); $this.remove(); root.$menu.trigger('contextmenu:hide'); - /* (Airtime) added this to allow user to exit out of menu + /* (Airtime) added this to allow user to exit out of menu. * if ignoreThisClick remains false, every right click * thereafter continues to show the menu */ - if (e.button == 2) { - ignoreThisClick = true; + if (ignoreRightClick) { + if (e.button == 2) { + ignoreThisClick = true; + } } }, // key handled :hover