Rev | Line | |
---|
[1227] | 1 | /* UndoLogEntryCommand.as */
|
---|
| 2 |
|
---|
| 3 | package 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.