Skip to content

Commit ede58c7

Browse files
Fix title and message position on ripple emulator
1 parent 5b670d2 commit ede58c7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

webratio/emulation_stub.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function createStubs() {
2323
act.cancelable = false;
2424

2525
act.activityElement = document.createElement("DIV");
26+
act.activityElement.id = "wr-activity-waiting";
2627
act.activityElement.style.background = "rgba(0, 0, 0, 0.5)";
2728
act.activityElement.style.position = "fixed";
2829
act.activityElement.style.width = "100%";
@@ -89,12 +90,16 @@ function createStubs() {
8990
return {
9091
Notification : {
9192
alert : function(message, title, buttonLabel) {
92-
if (title) {
93-
message = title + "\n" + message;
94-
}
93+
9594
if (notifications) {//Ripple Notifications
95+
if (title) {
96+
message = title + "<br>" + message;
97+
}
9698
return notifications.alert(undefined, undefined, [message]);
9799
} else {
100+
if (title) {
101+
message = title + "\n" + message;
102+
}
98103
window.alert(message);
99104
}
100105
},

0 commit comments

Comments
 (0)