Changeset 32872 for main/trunk


Ignore:
Timestamp:
2019-03-07T19:22:44+13:00 (5 years ago)
Author:
ak19
Message:

Clean up

File:
1 edited

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       
Note: See TracChangeset for help on using the changeset viewer.