Allow html formatting in wrapper prompt display

This commit is contained in:
shortcutme 2018-03-07 03:10:13 +01:00
parent 7097859b79
commit e03731fd24
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@ class Wrapper
displayPrompt: (message, type, caption, placeholder, cb) ->
body = $("<span class='message'></span>").text(message)
body = $("<span class='message'></span>").html(message)
placeholder ?= ""
input = $("<input/>", {type: type, class: "input button-#{type}", placeholder: placeholder}) # Add input

View file

@ -1216,7 +1216,7 @@ jQuery.extend( jQuery.easing,
Wrapper.prototype.displayPrompt = function(message, type, caption, placeholder, cb) {
var body, button, input;
body = $("<span class='message'></span>").text(message);
body = $("<span class='message'></span>").html(message);
if (placeholder == null) {
placeholder = "";
}