开发者

wdContextMenu on left click

There is a nice hierarchical jQuery PlugIn for context-menus from web-delicious: wdContextMenu. I want 开发者_运维百科to use it on left clicks too, but I can't figure out how to do this (no button or which in the code, all bind-, click- and out-methods seem to do sth else). Perhaps someone has done this before.


You need to change the line:

return $(this).bind('contextmenu', function(e) {

to

return $(this).bind('click', function(e) {


After a quick walkthrough I don't think this is achievable because this plugin uses oncontextmenu event and in the process of building up the menu component the click event(which is for the left click) is overridden for the elements to return false always.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜