Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery-listentryinfo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kjetil Thuen
jquery-listentryinfo
Commits
18b1221d
Commit
18b1221d
authored
Sep 11, 2013
by
Kjetil Thuen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allways register click handlers
parent
1b5ef985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/jquery.listentryinfo.js
src/jquery.listentryinfo.js
+7
-8
No files found.
src/jquery.listentryinfo.js
View file @
18b1221d
...
...
@@ -167,7 +167,7 @@
};
var
registerEventHandlers
=
function
()
{
var
register
Window
EventHandlers
=
function
()
{
$
(
window
).
bind
(
'
scrollstart
'
,
function
(){
if
(
scrollListenersEnabled
)
{
scrollInProgress
=
true
;
...
...
@@ -189,15 +189,9 @@
}
});
peekedList
.
children
(
"
li
"
).
click
(
function
()
{
setSelectedElement
(
$
(
this
).
get
(),
true
);
});
$
(
window
).
resize
(
function
()
{
debounce
(
resetGeometry
,
500
,
false
)();
});
handlersRegistered
=
true
;
};
$
.
fn
.
listEntryInfo
=
function
(
options
)
{
...
...
@@ -253,9 +247,14 @@
centerOfHeadline
=
$
(
'
#
'
+
settings
.
sightScopeId
).
offset
().
top
-
$
(
window
).
scrollTop
()
+
(
$
(
'
#
'
+
settings
.
sightScopeId
).
height
()
/
2
);
if
(
!
handlersRegistered
)
{
registerEventHandlers
();
register
Window
EventHandlers
();
}
peekedList
.
children
(
"
li
"
).
click
(
function
()
{
setSelectedElement
(
$
(
this
).
get
(),
true
);
});
resetGeometry
();
return
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment