Ignore:
Timestamp:
2019-03-04T16:30:56+13:00 (5 years ago)
Author:
ak19
Message:
  1. Zeddy introduces suppressUndo and cleaned up lots of CloneShape sectionst that were commented out. 2. Zeddy and Dr Bainbridge solved the issue whereby shapes loaded from archives_metadata were not selectable and needed a deleteAllShapes followed by Undo to make them selectable. These steps are no longer needed now, as it's solved more efficiently.
File:
1 edited

Legend:

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

    r32840 r32850  
    8181        });
    8282    newLink.click(function () {
    83         console.log(metaTable.metaNameField);
    8483        if (metaTable.css("display") == "none") {
    8584            linkLabel.html(gs.text.de.hide_metadata);
     
    137136        if(!oldMapData && newMapData !== "[]" || oldMapData && oldMapData !== newMapData) {
    138137            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);
    142141           
    143142            modifiedMaps.push({
     
    149148            });
    150149           
     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)         
    151156            map_editor.savedOverlays = newMapData;
    152157        }
Note: See TracChangeset for help on using the changeset viewer.