From 636c40eb11aa014e81cc4c370e44d5653157020e Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 19 Apr 2012 18:23:30 -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 -fixed --- airtime_mvc/public/js/contextmenu/jquery.contextMenu.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js b/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js index 92153b0ca..ddc699160 100755 --- a/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js +++ b/airtime_mvc/public/js/contextmenu/jquery.contextMenu.js @@ -306,6 +306,13 @@ 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 + * if ignoreThisClick remains false, every right click + * thereafter continues to show the menu + */ + if (e.button == 2) { + ignoreThisClick = true; + } }, // key handled :hover keyStop: function(e, opt) {