23 lines
935 B
Plaintext
23 lines
935 B
Plaintext
Before you overwrite jquery.contextMenu.js, note that we have changed a few lines
|
|
in this file.
|
|
|
|
denise@denise-DX4860:~/airtime/legacy/public/js/contextmenu$ diff -u jquery.contextMenu_orig.js jquery.contextMenu.js
|
|
--- jquery.contextMenu_orig.js 2012-04-20 10:15:59.943215571 -0400
|
|
+++ jquery.contextMenu.js 2012-04-20 10:00:18.911178927 -0400
|
|
@@ -306,6 +306,15 @@
|
|
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 (ignoreRightClick) {
|
|
+ if (e.button == 2) {
|
|
+ ignoreThisClick = true;
|
|
+ }
|
|
+ }
|
|
},
|
|
// key handled :hover
|
|
keyStop: function(e, opt) {
|