source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/UndoLogEntryCommand.as@ 1227

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

initial load of EDIS 1.0

File size: 707 bytes
RevLine 
[1227]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.