Changeset 32604


Ignore:
Timestamp:
2018-11-15T14:19:55+13:00 (3 years 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

File:
1 edited

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}
Note: See TracChangeset for help on using the changeset viewer.