Changeset 270


Ignore:
Timestamp:
03/22/10 14:04:01 (14 years ago)
Author:
patdui
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/EditorAS.as

    r269 r270  
    7272}
    7373
    74 private var ref:FileReference = new FileReference();
     74//private var ref:FileReference = new FileReference();
    7575
    7676private function saveSpec():void {
    7777//      Alert.show(xmlEditor.cmdSpec.toXml());
    78 ref.save(xmlEditor.cmdSpec.toXml(), "test.xml");
     78//ref.save(xmlEditor.cmdSpec.toXml(), "test.xml");
    7979
    80 //      var item:ItemDescription = new ItemDescription();
    81 //      item.description = xmlEditor.cmdSpec.headerDescription;
    82 //      item.name = xmlEditor.cmdSpec.headerName;
    83 //      item.isProfile = xmlEditor.cmdSpec.isProfile;
    84 //      item.groupName = xmlEditor.cmdSpec.groupName;
    85 //      uploadService.addEventListener(UploadCompleteEvent.UPLOAD_COMPLETE, handleSaveComplete);
    86 //      if (item.isProfile) {
    87 //              uploadService.submitProfile(item, xmlEditor.cmdSpec.toXml());
    88 //      } else {
    89 //              uploadService.submitComponent(item, xmlEditor.cmdSpec.toXml());
    90 //      }
     80        var item:ItemDescription = new ItemDescription();
     81        item.description = xmlEditor.cmdSpec.headerDescription;
     82        item.name = xmlEditor.cmdSpec.headerName;
     83        item.isProfile = xmlEditor.cmdSpec.isProfile;
     84        item.groupName = xmlEditor.cmdSpec.groupName;
     85        uploadService.addEventListener(UploadCompleteEvent.UPLOAD_COMPLETE, handleSaveComplete);
     86        if (item.isProfile) {
     87                uploadService.submitProfile(item, xmlEditor.cmdSpec.toXml());
     88        } else {
     89                uploadService.submitComponent(item, xmlEditor.cmdSpec.toXml());
     90        }
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.