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
71f2e3b0
Commit
71f2e3b0
authored
8 years ago
by
khawkins98
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with live filter loading, execution
parent
90f4ddd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+4
-4
4 additions, 4 deletions
index.html
libraries/LiveFilter/js/jquery.liveFilter.js
+2
-3
2 additions, 3 deletions
libraries/LiveFilter/js/jquery.liveFilter.js
with
6 additions
and
7 deletions
index.html
+
4
−
4
View file @
71f2e3b0
...
...
@@ -1027,11 +1027,11 @@
If not, load this JS after jQuery. -->
<script
defer
src=
"libraries/tablesorter/jquery.tablesorter.min.js"
></script>
<script
type=
"text/javascript"
>
window
.
on
load
=
function
()
{
window
.
addEventListener
(
'
load
'
,
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
"
#table-sort-demo
"
).
tablesorter
();
});
}
}
);
</script>
</section>
...
...
@@ -1209,7 +1209,7 @@
If not, load this JS after jQuery. -->
<script
defer
src=
"libraries/LiveFilter/js/jquery.liveFilter.js"
></script>
<script
type=
"text/javascript"
>
window
.
on
load
=
function
()
{
window
.
addEventListener
(
'
load
'
,
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'
#livefilterdemo
'
).
liveFilter
({
fitlerTargetCustomDiv
:
'
div.live-filter-target-granularity
'
,
...
...
@@ -1217,7 +1217,7 @@
noMatches
:
'
<p>No matching papers found.</p><a class="button" href="#">You could add a link to advanced search</a>
'
});
});
}
}
);
</script>
</div>
<!-- /livefilter -->
...
...
This diff is collapsed.
Click to expand it.
libraries/LiveFilter/js/jquery.liveFilter.js
+
2
−
3
View file @
71f2e3b0
...
...
@@ -12,7 +12,6 @@
(
function
(
$
){
$
.
fn
.
liveFilter
=
function
(
settings
)
{
// Default settings
var
defaults
=
{
delay
:
0
,
...
...
@@ -36,7 +35,7 @@
// Cache our wrapper element and find our target list.
var
wrap
=
$
(
this
);
var
filterTarget
=
wrap
.
find
(
'
ul, ol, table,
'
+
options
.
fitlerTargetCustomD
iv
);
var
filterTarget
=
wrap
.
find
(
'
ul, ol, table,
d
iv
'
);
// Add no matches text.
wrap
.
append
(
'
<div class="nomatches">
'
+
options
.
noMatches
+
'
</div>
'
);
...
...
@@ -44,7 +43,7 @@
nomatches
.
hide
();
// Determine our child element type.
if
(
filterTarget
.
is
(
options
.
fitlerTargetCustomDiv
)
)
{
if
(
options
.
fitlerTargetCustomDiv
)
{
child
=
options
.
fitlerTargetCustomDiv
;
}
else
if
(
filterTarget
.
is
(
'
ul
'
)
||
filterTarget
.
is
(
'
ol
'
))
{
child
=
'
li
'
;
...
...
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