Changeset 32839 for main

Show
Ignore:
Timestamp:
02.03.2019 19:46:19 (10 months ago)
Author:
ak19
Message:

Forgot to reinstate important code (if condition) after debugging was finished.

Files:
1 modified

Legend:

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

    r32838 r32839  
    135135        // - if oldMapData is null, new mapData should not be empty array 
    136136        // - OR oldMapData had some value and it's not the same as newMapData 
    137         if(!oldMapData && newMapData !== "[]" /*|| oldMapData && oldMapData !== newMapData*/) { 
     137        if(!oldMapData && newMapData !== "[]" || oldMapData && oldMapData !== newMapData) { 
    138138            var nodeID = map_editors_array[i].id; 
    139139            console.log("old vs new mapdata for nodeID " + nodeID); 
     
    148148                value:newMapData                 
    149149            }); 
     150             
    150151        } 
    151152