Changeset 32872 for main

Show
Ignore:
Timestamp:
07.03.2019 19:22:44 (9 months ago)
Author:
ak19
Message:

Clean up

Files:
1 modified

Legend:

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

    r32871 r32872  
    148148            }); 
    149149             
    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)           
    156             //map_editor.savedOverlays = newMapData; // happens after all setArchivesMeta calls have succeeded, just at the start of sendBuildRequest() in documentedit_scripts_util.js::saveAndRebuild() 
     150            //map_editor.savedOverlays = newMapData; 
     151            // Saving the new overlay values as the old ones, for the state after saving and rebuilding is done, 
     152            // now happens after all setArchivesMeta)_ calls have succeeded, 
     153            // which is just at the start of sendBuildRequest() in documentedit_scripts_util.js::saveAndRebuild()            
    157154        } 
    158155