Changeset 32604

Show
Ignore:
Timestamp:
15.11.2018 14:19:55 (4 weeks ago)
Author:
kjdon
Message:

made it easy to change whether you scroll through the places or not by default - change the _scrollThroughDefault value to true/false

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts.js

    r30736 r32604  
    1313var _searchRunning = false; 
    1414var _nearbyDocs = new Array(); 
     15var _scrollThroughDefault = true; 
    1516 
    1617function initializeMapScripts()  
     
    4445    if(_docList.ids.length > 1) 
    4546    { 
    46         var startStopCheckbox = $("<input>", {"type": "checkbox", "checked": "true", "id": "scrollCheckbox"}); 
     47        var startStopCheckbox = $("<input>", {"type": "checkbox", "checked": _scrollThroughDefault, "id": "scrollCheckbox"}); 
    4748        startStopCheckbox.click(function() 
    4849        { 
     
    7071 
    7172        $(container).insertAfter("#map_canvas"); 
    72          
     73 
     74        if (_scrollThroughDefault) { 
    7375        _intervalHandle = setInterval(loopThroughMarkers, 2000); 
     76        } 
     77         
    7478    } 
    7579}