Use empty placeholder if not specified

This commit is contained in:
shortcutme 2017-11-29 13:48:20 +01:00
parent 7c1a4e353d
commit 06a50b189d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -237,6 +237,7 @@ class Wrapper
displayPrompt: (message, type, caption, placeholder, cb) -> displayPrompt: (message, type, caption, placeholder, cb) ->
body = $("<span class='message'>"+message+"</span>") body = $("<span class='message'>"+message+"</span>")
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
input.on "keyup", (e) => # Send on enter input.on "keyup", (e) => # Send on enter