projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e733535
)
Ménage, lint.
zope-2.13-egg
author
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 14 Apr 2015 07:48:51 +0000
(09:48 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Tue, 14 Apr 2015 07:48:51 +0000
(09:48 +0200)
Products/Portfolio/skins/photo_lightbox_viewer.js
patch
|
blob
|
history
diff --git
a/Products/Portfolio/skins/photo_lightbox_viewer.js
b/Products/Portfolio/skins/photo_lightbox_viewer.js
index
ba3ecf1
..
8b19c3f
100644
(file)
--- a/
Products/Portfolio/skins/photo_lightbox_viewer.js
+++ b/
Products/Portfolio/skins/photo_lightbox_viewer.js
@@
-24,7
+24,7
@@
Lightbox = function(grid, toolbar, complete, container_type, orderable) {
addListener(window, 'scroll', function(evt){self.windowScrollToolbarlHandler(evt);});
}
addListener(window, 'scroll', function(evt){self.windowScrollGridHandler(evt);});
addListener(window, 'scroll', function(evt){self.windowScrollToolbarlHandler(evt);});
}
addListener(window, 'scroll', function(evt){self.windowScrollGridHandler(evt);});
-
registerStartupFunction(function(){
self.windowScrollGridHandler();});
+
addListener(window, 'load', function(evt){
self.windowScrollGridHandler();});
this.lastCBChecked = undefined;
this.form = undefined;
var parent = this.grid.parentNode;
this.lastCBChecked = undefined;
this.form = undefined;
var parent = this.grid.parentNode;
@@
-82,9
+82,7
@@
Lightbox.prototype.windowScrollToolbarlHandler = function(evt) {
Lightbox.prototype.windowScrollGridHandler = function(evt) {
if (!this.complete &&
!this.fetchingDisabled &&
Lightbox.prototype.windowScrollGridHandler = function(evt) {
if (!this.complete &&
!this.fetchingDisabled &&
- getWindowScrollY() >
- (this.lastSlide.firstElementChild || this.lastSlide.children[0]).offsetTop
- - getWindowHeight()) {
+ getWindowScrollY() > (this.lastSlide.firstElementChild || this.lastSlide.children[0]).offsetTop - getWindowHeight()) {
this.fetchingDisabled = true;
this.fetchTail();
}
this.fetchingDisabled = true;
this.fetchTail();
}