Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ebiwd
EBI-Framework
Commits
ca232546
Commit
ca232546
authored
8 years ago
by
khawkins98
Browse files
Options
Downloads
Patches
Plain Diff
Auto focus on searchbox
parent
3ef43910
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/foundationExtendEBI.js
+8
-0
8 additions, 0 deletions
js/foundationExtendEBI.js
with
8 additions
and
0 deletions
js/foundationExtendEBI.js
+
8
−
0
View file @
ca232546
...
...
@@ -191,7 +191,15 @@ if (jQuery('body').hasClass('google-analytics-loaded')) {
})();
// Focus searchbox on global nav button click
// ---------
// Ideally we would have used Foundation's "data-auto-focus", but this came after the HTML was widely circulated
$
(
'
a[data-toggle="search-global-dropdown"]
'
).
click
(
function
()
{
if
(
$
(
this
).
is
(
'
:not(.hover)
'
))
{
setTimeout
(
function
()
{
$
(
'
input#global-searchbox
'
).
focus
()
},
100
);
}
});
// Link overlay images
// ---------
$
(
function
()
{
$
(
'
.with-overlay
'
).
on
(
'
click
'
,
function
(
e
)
{
var
href
=
$
(
this
).
find
(
'
a:first
'
).
attr
(
'
href
'
)
||
''
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment