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
92208b45
Commit
92208b45
authored
7 years ago
by
khawkins98
Browse files
Options
Downloads
Patches
Plain Diff
Add ability to log livefilter search #123
parent
a458148a
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
libraries/LiveFilter/js/jquery.liveFilter.js
+10
-4
10 additions, 4 deletions
libraries/LiveFilter/js/jquery.liveFilter.js
with
10 additions
and
4 deletions
libraries/LiveFilter/js/jquery.liveFilter.js
+
10
−
4
View file @
92208b45
...
...
@@ -15,7 +15,8 @@
$
.
fn
.
liveFilter
=
function
(
settings
)
{
// Default settings
var
defaults
=
{
delay
:
0
,
delay
:
50
,
analyticsLogging
:
false
,
// log to google analytics through foundationExtendEBI.js
defaultText
:
'
Type to Filter:
'
,
resetText
:
'
Reset
'
,
noMatches
:
'
No Matches
'
,
...
...
@@ -116,7 +117,7 @@
});
input
.
blur
(
function
()
{
var
currentVal
=
$
(
this
).
val
();
var
currentVal
=
$
(
this
).
val
();
if
(
currentVal
===
''
)
{
$
(
this
).
val
(
options
.
defaultText
);
}
...
...
@@ -141,7 +142,7 @@
}
// Setting timeout for performance reasons.
keyDelay
=
setTimeout
(
function
()
{
keyDelay
=
setTimeout
(
function
()
{
filter
=
input
.
val
().
toLowerCase
();
var
visible
=
0
;
...
...
@@ -152,6 +153,11 @@
$
(
this
).
hide
();
})
}
else
{
if
(
analyticsLogging
)
{
if
(
$
(
'
body
'
).
hasClass
(
'
google-analytics-loaded
'
))
{
analyticsTrackInteraction
(
filter
,
'
Live filter search
'
);
}
}
// Iterate through list and show/hide the proper elements.
list
.
each
(
function
(
i
)
{
text
=
$
(
this
).
text
().
toLowerCase
();
...
...
@@ -200,4 +206,4 @@
}
}
})(
jQuery
);
\ No newline at end of file
})(
jQuery
);
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