This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new bf60f21 jewel-alert: use html instead text for messages
bf60f21 is described below
commit bf60f2152289daa995ccf2cfe3bf7b9c09c98ec2
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed Apr 3 19:32:50 2019 +0200
jewel-alert: use html instead text for messages
---
examples/royale/TourDeJewel/src/main/royale/AlertPlayGround.mxml | 2 +-
.../src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/royale/TourDeJewel/src/main/royale/AlertPlayGround.mxml
b/examples/royale/TourDeJewel/src/main/royale/AlertPlayGround.mxml
index f1cf046..8bb7532 100644
--- a/examples/royale/TourDeJewel/src/main/royale/AlertPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/AlertPlayGround.mxml
@@ -39,7 +39,7 @@ limitations under the License.
// Event handler function uses a static method to show
// a pop-up window with the title, message, and requested buttons.
private function clickHandler(event:MouseEvent):void {
- var alert:Alert = Alert.show("Do you want to save your
changes?", "Save Changes", 3);
+ var alert:Alert = Alert.show("Do you want to <b>save</b> your
changes?", "Save Changes", 3);
alert.addEventListener(CloseEvent.CLOSE,
alertClickHandler);
}
diff --git
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
index 41f18dc..7bd7d3f 100644
---
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
+++
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
@@ -168,7 +168,7 @@ package org.apache.royale.jewel.beads.views
// Text
label = new Label();
label.multiline = true;
- label.text = alertModel.message;
+ label.html = alertModel.message;
content = new VGroup();
content.addClass("content");