ruby on rails - jquery act on right click when user tries to open a new window -
i have bootstrap modal simple button link in it. right working following:
jquery('#jobpostwarning').find('a').mousedown(function(e) { if(e.which === 3) { jquery(this).find('a').trigger("click"); } });
the goal here make right click work same left when user tries open new window on modal link_to button.
you might able this:
how add custom right-click menu webpage?
overriding browsers right click menu isn't reliable though.
see this answer more details.
Comments
Post a Comment