Daniel Carl Jason Ryan <[email protected]> wrote: > This has been around for a while; this small patch for hinting.js will fix > it. An unfortunate side-effect seems to be that it will > crash the original window when you use the mouse to "open in new tab"; > I don't use the mouse so it doesn't bother me, but caveat emptor etc… > > /J > > > @@ -395,11 +403,12 @@ > var oldTarget = elem.target; > > /* set target to open in new window */ > - elem.target = "_blank"; > + /* elem.target = "_blank"; > _clickElement(elem); > elem.target = oldTarget; > > - return "done;"; > + return "done;"; */ > + return "tabopen;" + elem.href; > }
This patch does only work for normal links if the hinted element uses onclick or something similar this would not work. I see often pages with links like '<a href="#" onclick="doFancyThings(); return false">' and sometimes this are not even liks but span-Elements. Daniel ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Vimprobable-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vimprobable-users
