fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be97b26
)
jquery.lazyload przestaje sprawdzać scrollTop, jeżeli element nie ma atrybutu 'lazylo...
author
zuber
<marek@stepniowski.com>
Sat, 22 Aug 2009 21:04:21 +0000
(23:04 +0200)
committer
zuber
<marek@stepniowski.com>
Sat, 22 Aug 2009 21:04:21 +0000
(23:04 +0200)
project/static/js/jquery.lazyload.js
patch
|
blob
|
history
diff --git
a/project/static/js/jquery.lazyload.js
b/project/static/js/jquery.lazyload.js
index
522250f
..
50a183e
100644
(file)
--- a/
project/static/js/jquery.lazyload.js
+++ b/
project/static/js/jquery.lazyload.js
@@
-23,6
+23,10
@@
}
function checkScroll() {
+ console.log(checkScroll, container.data('lazyload:lastCheckedScrollTop'));
+ if (container.data('lazyload:lastCheckedScrollTop') == undefined) {
+ return;
+ }
if (Math.abs(container.scrollTop() - container.data('lazyload:lastCheckedScrollTop')) > settings.scrollThreshold) {
container.data('lazyload:lastCheckedScrollTop', container.scrollTop());