Changeset 26161

Show
Ignore:
Timestamp:
11.09.2012 10:24:14 (7 years ago)
Author:
sjm84
Message:

When a place is clicked the "Scroll through places" checkbox becomes unchecked

Files:
1 modified

Legend:

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

    r26160 r26161  
    4747        startStopCheckbox.setAttribute("type", "checkbox"); 
    4848        startStopCheckbox.setAttribute("checked", "true"); 
     49        startStopCheckbox.setAttribute("id", "scrollCheckbox"); 
    4950        startStopCheckbox.onclick = function() 
    5051        { 
     
    370371        clearAllInfoBoxes(); 
    371372        doc.marker.markerInfo.open(_map, doc.marker); 
     373        var scrollCheckbox = document.getElementById("scrollCheckbox"); 
     374        if(scrollCheckbox.checked) 
     375        { 
     376            scrollCheckbox.checked = false; 
     377        } 
    372378    } 
    373379}