diff --git a/Super.Human.Portal_Royale/pom.xml b/Super.Human.Portal_Royale/pom.xml
index b096cbc..f98fbd1 100644
--- a/Super.Human.Portal_Royale/pom.xml
+++ b/Super.Human.Portal_Royale/pom.xml
@@ -4,7 +4,7 @@
net.apacheRoyaleTemplatedApp
Super.Human.Portal
- 0.1.8
+ 0.1.9-SNAPSHOT
swf
Super.Human.Portal
diff --git a/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml b/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml
index e1a99d1..84c3589 100644
--- a/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml
+++ b/Super.Human.Portal_Royale/src/generated/Super.Human.Portal_Royale/views/modules/DocumentationForm/DocumentationFormViews/DocumentationForm.mxml
@@ -54,6 +54,15 @@
this.itemVO = null;
}
+ private function initReadOnlyForm():void
+ {
+ this.currentState = 'contentState';
+ this.isDisabled = true;
+ this.backCancelButton.text = "Back";
+ this.proxy.selectedIndex = dg.selectedIndex;
+ this.itemVO = dg.selectedItem.clone();
+ }
+
private function onSaveClick(event:Event):void
{
this.proxy.submitItem(this.itemVO);
@@ -61,7 +70,14 @@
private function onCancelClick(event:Event):void
{
- this.cancelFormEdit();
+ if (this.isDisabled)
+ {
+ this.cancelFormEdit();
+ }
+ else
+ {
+ this.initReadOnlyForm();
+ }
}
private function onAddItem(event:Event):void
@@ -83,10 +99,7 @@
private function onGridDoubleClick(event:Event):void
{
- this.currentState = 'contentState';
- this.isDisabled = true;
- this.proxy.selectedIndex = dg.selectedIndex;
- this.itemVO = dg.selectedItem.clone();
+ this.initReadOnlyForm();
}
private function onServerItemChanged(event:Event):void
diff --git a/Super.Human.Portal_Royale/src/resources/app-styles.css b/Super.Human.Portal_Royale/src/resources/app-styles.css
index e83f62a..29b2838 100644
--- a/Super.Human.Portal_Royale/src/resources/app-styles.css
+++ b/Super.Human.Portal_Royale/src/resources/app-styles.css
@@ -482,5 +482,5 @@ a:hover {
}
.jewel.button.primary.linkAppButton {
- textWrap: wrap !important;
+ whiteSpace: pre-wrap !important;
}
\ No newline at end of file