AIRTIME_DEV_README 943 B

123456789101112131415161718192021222324
  1. Before you overwrite jquery.contextMenu.js, note that we have changed a few lines
  2. in this file.
  3. denise@denise-DX4860:~/airtime/airtime_mvc/public/js/contextmenu$ diff -u jquery.contextMenu_orig.js jquery.contextMenu.js
  4. --- jquery.contextMenu_orig.js 2012-04-20 10:15:59.943215571 -0400
  5. +++ jquery.contextMenu.js 2012-04-20 10:00:18.911178927 -0400
  6. @@ -306,6 +306,15 @@
  7. e.stopImmediatePropagation();
  8. $this.remove();
  9. root.$menu.trigger('contextmenu:hide');
  10. + /* (Airtime) added this to allow user to exit out of menu.
  11. + * if ignoreThisClick remains false, every right click
  12. + * thereafter continues to show the menu
  13. + */
  14. + if (ignoreRightClick) {
  15. + if (e.button == 2) {
  16. + ignoreThisClick = true;
  17. + }
  18. + }
  19. },
  20. // key handled :hover
  21. keyStop: function(e, opt) {