docs.gl icon indicating copy to clipboard operation
docs.gl copied to clipboard

Selecting search result should open it

Open ghost opened this issue 8 years ago • 4 comments

If you go for example to http://docs.gl/gl4/glBufferStorage and search for some command and select it, you still have to press Go button to redirect to that page.

ghost avatar Apr 22 '16 19:04 ghost

Yea I'm not good enough at Javascript to figure out how to not require that.

BSVino avatar Apr 23 '16 01:04 BSVino

I don't remember the APIs offhand, but I think this is like, three or four lines of jQuery.

JesseTG avatar Apr 23 '16 05:04 JesseTG

Adding

$("#search").autocomplete( "option", "select", function(e, ui) { location.href = '/' + ui.item.label; } );

after the other two autocomplete calls in html/docs.gl.search.js should work.

tkausl avatar Aug 25 '17 02:08 tkausl

Hey sorry I was on vacation when this was posted. I wonder if it would be a bother to ask you to make a pull request?

BSVino avatar Sep 13 '17 02:09 BSVino