diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-01-11 15:02:22 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-01-11 15:02:22 +0100 |
| commit | 5f3e6fdd9e6aeba8c68ce8b96bb8a50cb01132d8 (patch) | |
| tree | 18210c625fdf50ed1614851942ecd627123e9cd5 /addons/web/static/lib/jquery.contextmenu | |
| parent | 6d64acd8b6efc39e48fdaefed728ec699497ff20 (diff) | |
[IMP] Disable right click on m2o button
bzr revid: fme@openerp.com-20120111140222-cirxtmubrma6qj9b
Diffstat (limited to 'addons/web/static/lib/jquery.contextmenu')
| -rw-r--r-- | addons/web/static/lib/jquery.contextmenu/jquery.contextmenu.r2.packed.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/web/static/lib/jquery.contextmenu/jquery.contextmenu.r2.packed.js b/addons/web/static/lib/jquery.contextmenu/jquery.contextmenu.r2.packed.js index 2356f3b606b..47f542e5d39 100644 --- a/addons/web/static/lib/jquery.contextmenu/jquery.contextmenu.r2.packed.js +++ b/addons/web/static/lib/jquery.contextmenu/jquery.contextmenu.r2.packed.js @@ -65,8 +65,10 @@ display(index,this,e,options); return false; }; - $(this).bind('contextmenu', callback); - if(options.leftClickToo) { + if (!options.noRightClick) { + $(this).bind('contextmenu', callback); + } + if (options.leftClickToo || options.noRightClick) { $(this).click(callback); } return this @@ -123,4 +125,4 @@ })(jQuery); $( function() { $('div.contextMenu').hide() -});
\ No newline at end of file +}); |
