From 2421b98cb4f12a51d88d6f85ba5f31433e226dfe Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Sat, 27 Dec 2014 23:36:56 -0800 Subject: [PATCH] Put the cursor at the end of the hoogle search box #47 --- templates/hoogle.julius | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 templates/hoogle.julius diff --git a/templates/hoogle.julius b/templates/hoogle.julius new file mode 100644 index 0000000..4d7fcfc --- /dev/null +++ b/templates/hoogle.julius @@ -0,0 +1,5 @@ +$(function() { + var input = $(".hoogle .search").get(0); + var len = input.value.length; + input.setSelectionRange(len, len); +})