<script> function cancelProp(event){ if (event.stopPropagation) {event.stopPropagation()} //w3c else {event.cancelBubble = true } // ie } </script> <div onclick="alert(42)" title="Click to expand"> <a href="http://google.ca" onclick="cancelProp(event)" title=" "> google </a> blah blah </div>
Suppressing the title on the link is tricky the above works on Chrome/Firefox but shows a space on IE/Safari - see: https://stackoverflow.com/questions/5881954/html-stop-child-elements-from-inheriting-parents-title-attribute but you might have a useful title to give it. ../Dave On 25 November 2017 at 20:47, Richard Hipp <d...@sqlite.org> wrote: > On 11/25/17, David Mason <dma...@ryerson.ca> wrote: > > > > When I did that, I made clicking on anywhere in that div expand it. > > > > I've done that in the latest. Actually, I made it click-to-toggle. > That seems to work a lot better than trying to click on the ellipsis. > > But there is a subtle problem. For timeline comments that contain a > hyperlink (ex: https://www.sqlite.org/srcx/timeline?c=b016c28f) if I > click on the hyperlink, it first toggles the detail on/off before it > takes the hyperlink. Do you have suggestions on how I can disable the > "onclick" on the outer <span> when one clicks inside an inner <a>? > -- > D. Richard Hipp > d...@sqlite.org >
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users