source: EDIS/tags/ed/tracking-ui-core/src/main/flex/gov/va/med/edp/command/UndoLogEntryCommand.as@ 1240

Last change on this file since 1240 was 1240, checked in by George Lilly, 13 years ago

new version from the VA

File size: 707 bytes
Line 
1/* UndoLogEntryCommand.as */
2
3package gov.va.med.edp.command
4{
5 import com.adobe.cairngorm.commands.ICommand;
6 import com.adobe.cairngorm.control.CairngormEvent;
7 import gov.va.med.edp.model.TrackingModelLocator;
8
9 public class UndoLogEntryCommand implements ICommand
10 {
11 private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
12
13 public function execute(event:CairngormEvent):void
14 {
15 if (!model.logEdit.dirty) return;
16
17 model.logEdit.undo.copyTo(model.logEdit.entry);
18 model.logEdit.message = "";
19 model.logEdit.dirty = false;
20 model.entryRemoveReady();
21 //from AutoSave: model.editorViewState = TrackingModelLocator.VIEW_EDIT_FORM;
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.