Changeset 25868
- Timestamp:
- 2012-06-28T13:22:55+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/map-scripts.js
r25462 r25868 300 300 } 301 301 302 if(_docList.loopIndex >= visibleMarkers.length)303 {304 _docList.loopIndex = 0;305 }306 307 302 clearAllInfoBoxes(); 308 309 var doc = visibleMarkers[_docList.loopIndex]; 310 var elem = document.getElementById("div" + doc.nodeID); 311 if(elem) 312 { 313 elem.style.background = "#BBFFBB"; 314 setTimeout(function(){elem.style.background = "";}, 2000); 303 304 var elem = null; 305 while(!elem) 306 { 307 if(_docList.loopIndex >= visibleMarkers.length) 308 { 309 _docList.loopIndex = 0; 310 } 311 312 var doc = visibleMarkers[_docList.loopIndex]; 313 var elem = document.getElementById("div" + doc.nodeID); 314 if(elem) 315 { 316 elem.style.background = "#BBFFBB"; 317 setTimeout(function(){elem.style.background = "";}, 2000); 318 } 319 _docList.loopIndex++; 315 320 } 316 321 doc.marker.markerInfo.open(_map, doc.marker); 317 318 _docList.loopIndex++;319 322 } 320 323
Note:
See TracChangeset
for help on using the changeset viewer.