- Timestamp:
- 2019-03-04T16:30:56+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts.js
r32840 r32850 81 81 }); 82 82 newLink.click(function () { 83 console.log(metaTable.metaNameField);84 83 if (metaTable.css("display") == "none") { 85 84 linkLabel.html(gs.text.de.hide_metadata); … … 137 136 if(!oldMapData && newMapData !== "[]" || oldMapData && oldMapData !== newMapData) { 138 137 var nodeID = map_editors_array[i].id; 139 console.log("old vs new mapdata for nodeID " + nodeID);140 console.log(oldMapData);141 console.log(newMapData);138 //console.log("old vs new mapdata for nodeID " + nodeID); 139 //console.log("OLD: " + oldMapData); 140 //console.log("NEW: " + newMapData); 142 141 143 142 modifiedMaps.push({ … … 149 148 }); 150 149 150 // Save the new overlay values as the old ones for the state after saving and rebuilding is done. 151 // Ideally this should be do after saveAndRebuild has completed successfully, since if saveAndRebuild goes wrong 152 // we'd not have saved newMapData AND because savedOverlays will contain the newMapData, we won't detect these unsaved 153 // values in future attempts to save. 154 // But for now, we're doing this here *because* this is the procedure with regular metadata (works out changes, 155 // then saves those changes as initStates BEFORE saveAndRebuild is called) 151 156 map_editor.savedOverlays = newMapData; 152 157 }
Note:
See TracChangeset
for help on using the changeset viewer.