Focus search box when page loads
This commit is contained in:
parent
29a2b07b20
commit
4070a9f0ba
|
@ -1090,7 +1090,8 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(define (search-page request)
|
||||
(parameterize ((bootstrap-active-navigation nav-search))
|
||||
(parameterize ((bootstrap-active-navigation nav-search)
|
||||
(bootstrap-page-scripts '("/searchpage.js")))
|
||||
(authentication-wrap
|
||||
#:request request
|
||||
(define-form-bindings request ([search-text q ""]
|
||||
|
|
3
static/searchpage.js
Normal file
3
static/searchpage.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
$(document).ready(function () {
|
||||
$("#q").focus();
|
||||
});
|
Loading…
Reference in New Issue
Block a user