Allow html formatting in wrapper prompt display
This commit is contained in:
parent
7097859b79
commit
e03731fd24
2 changed files with 2 additions and 2 deletions
|
@ -270,7 +270,7 @@ class Wrapper
|
||||||
|
|
||||||
|
|
||||||
displayPrompt: (message, type, caption, placeholder, cb) ->
|
displayPrompt: (message, type, caption, placeholder, cb) ->
|
||||||
body = $("<span class='message'></span>").text(message)
|
body = $("<span class='message'></span>").html(message)
|
||||||
placeholder ?= ""
|
placeholder ?= ""
|
||||||
|
|
||||||
input = $("<input/>", {type: type, class: "input button-#{type}", placeholder: placeholder}) # Add input
|
input = $("<input/>", {type: type, class: "input button-#{type}", placeholder: placeholder}) # Add input
|
||||||
|
|
|
@ -1216,7 +1216,7 @@ jQuery.extend( jQuery.easing,
|
||||||
|
|
||||||
Wrapper.prototype.displayPrompt = function(message, type, caption, placeholder, cb) {
|
Wrapper.prototype.displayPrompt = function(message, type, caption, placeholder, cb) {
|
||||||
var body, button, input;
|
var body, button, input;
|
||||||
body = $("<span class='message'></span>").text(message);
|
body = $("<span class='message'></span>").html(message);
|
||||||
if (placeholder == null) {
|
if (placeholder == null) {
|
||||||
placeholder = "";
|
placeholder = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue