From: Benoît Pin Date: Thu, 10 Jul 2014 13:18:42 +0000 (+0200) Subject: ie8 compat X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/commitdiff_plain/605ba00317f24d9e86d7768db0bfa3bce326b00b?hp=8d2c6b1d7f684c3bf529091a4344fe2a5f68b15d ie8 compat --- diff --git a/skins/photo_lightbox_viewer.js b/skins/photo_lightbox_viewer.js index 017dbc0..23f6f77 100644 --- a/skins/photo_lightbox_viewer.js +++ b/skins/photo_lightbox_viewer.js @@ -23,7 +23,8 @@ Lightbox = function(grid, toolbar, complete) { addListener(window, 'scroll', function(evt){self.windowScrollToolbarlHandler(evt);}); } addListener(window, 'scroll', function(evt){self.windowScrollGridHandler(evt);}); - addListener(window, 'load', function(evt){ self.windowScrollGridHandler();}); + // addListener(window, 'load', function(evt){ self.windowScrollGridHandler();}); + registerStartupFunction(function(){ self.windowScrollGridHandler();}); this.lastCBChecked = undefined; this.form = undefined; var parent = this.grid.parentNode;