Changeset 1839
- Timestamp:
- 04/03/12 07:35:02 (12 years ago)
- Location:
- ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/CMDComponentXMLEditor.as
r1816 r1839 175 175 cmdSpec = CMDSpec.createEmptyProfile(); 176 176 } 177 dispatchEditorChangeEvent(); 177 178 } 178 179 -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/Editor.mxml
r1733 r1839 16 16 17 17 <mx:VBox width="100%" minHeight="30"> 18 <editor:EditorButtonBar width="100%" 18 <editor:EditorButtonBar id="buttonBar" 19 width="100%" 19 20 height="25" 20 21 saveClick="saveSpec(true, UploadService.UPDATE)" -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/EditorAS.as
r1733 r1839 53 53 } 54 54 55 private function determineSaveButtonEnabled():void { 56 buttonBar.saveBtn.enabled = (itemDescription != null && itemDescription.isInUserSpace && null != itemDescription.id && null != xmlEditor.cmdSpec.headerId); 57 } 58 55 59 private function profileLoaded(event:Event):void { 56 60 var cmdComponent:XML = profileSrv.profile.profileSource; 57 61 this.cmdSpec = CMDModelFactory.createModel(cmdComponent, profileSrv.profile.description); 62 determineSaveButtonEnabled(); 58 63 CursorManager.removeBusyCursor(); 59 64 } … … 62 67 var cmdComponent:XML = componentSrv.component.componentMD.xml; 63 68 this.cmdSpec = CMDModelFactory.createModel(cmdComponent, componentSrv.component.description); 69 determineSaveButtonEnabled(); 64 70 CursorManager.removeBusyCursor(); 65 71 } … … 75 81 componentSrv.load(itemDescription); 76 82 } 83 buttonBar.saveBtn.enabled = false; 77 84 } 78 85 } … … 153 160 uploadProgress.visible = false; 154 161 uploadProgress.includeInLayout = false; 162 determineSaveButtonEnabled(); 155 163 } 156 164 -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/EditorButtonBar.mxml
r835 r1839 11 11 <mx:Button id="saveBtn" 12 12 label="save" 13 click="dispatchEvent(new MouseEvent('saveClick'))"/> 13 click="dispatchEvent(new MouseEvent('saveClick'))" 14 enabled="false" 15 /> 14 16 <mx:Button id="saveAsNewBtn" 15 17 label="save as new"
Note: See TracChangeset
for help on using the changeset viewer.