Use empty placeholder if not specified
This commit is contained in:
parent
7c1a4e353d
commit
06a50b189d
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ class Wrapper
|
|||
|
||||
displayPrompt: (message, type, caption, placeholder, cb) ->
|
||||
body = $("<span class='message'>"+message+"</span>")
|
||||
placeholder ?= ""
|
||||
|
||||
input = $("<input type='#{type}' class='input button-#{type}' placeholder='#{placeholder}'/>") # Add input
|
||||
input.on "keyup", (e) => # Send on enter
|
||||
|
|
Loading…
Reference in a new issue