Ignore:
Timestamp:
2019-06-21T17:16:16+12:00 (5 years ago)
Author:
wy59
Message:
  1. Loop counter bugfix. 2. Not sure if there should be a scroll through markers option in doc view and if so, what it should do. For now, it's off by default in doc view but can be turned on, in which case it does not at the moment.
Location:
main/trunk/greenstone3/web/interfaces/default/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r33155 r33184  
    2020var editableLastStates = new Array();
    2121
     22// REDEFINING map-scripts::_scrollThroughDefault to be FALSE for document view
     23_scrollThroughDefault = false; // TODO: should this even be there in doc view? And if so, what should it scroll through, all markers/shapes in coll or only those in doc?
    2224
    2325/********************
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts.js

    r33173 r33184  
    424424    {
    425425        var doc = _docList.getDocByIndex(i);
    426         if(typeof doc.shapes !== 'undefined') {         
     426        if(typeof doc.shapes !== 'undefined') {
    427427            for(var x = 0; x < doc.shapes.length; x++) {
    428                 var shape = doc.shapes[i];
     428                var shape = doc.shapes[x];
    429429                if(shape.type === google.maps.drawing.OverlayType.MARKER && shape.getVisible())
    430430                {
Note: See TracChangeset for help on using the changeset viewer.