Issue 11743

Photo gallery inits on every page

11743
Reporter: mdoering
Assignee: mdoering
Type: Bug
Summary: Photo gallery inits on every page
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2012-08-27 18:42:07.167
Updated: 2013-08-29 14:44:38.262
Resolved: 2012-09-06 17:30:36.61
        
Description: On all pages that do not contain the photo_gallery div the slideshow still tries to load images.
For example look into js console on pages:
http://localhost:8080/dataset/d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
http://localhost:8080/organization/c4254a00-cb2b-11d8-bf68-b8a03c50a862#

App.js contains this which should only execute the bindSlideshow if it finds a matching element I would have thought, but apparently always exectues?
$(".photo_gallery").bindSlideshow();]]>
    


Author: mdoering@gbif.org
Comment: http://code.google.com/p/gbif-portal/source/detail?r=975
Created: 2012-09-06 17:30:36.642
Updated: 2012-09-06 17:30:36.642