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