From 028417b4f9435fe2ddbe57479c63a111feffdf1c Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Mon, 1 Oct 2018 18:40:45 +0200 Subject: [PATCH] add type to PromptDialog --- src/core/BaseDialog.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/BaseDialog.coffee b/src/core/BaseDialog.coffee index fb550af..7370ed0 100644 --- a/src/core/BaseDialog.coffee +++ b/src/core/BaseDialog.coffee @@ -121,6 +121,7 @@ class PromptDialog extends BasicDialog return unless d.data (d.find "content0").set "text", d.data.label (d.find "content1").value = d.data.value if d.data.value + $(d.find "content1").attr("type", d.data.type) if d.data.type xtra: (d) -> $( d.find "content1" ).keyup (e) -> (d.find "bt0").trigger() if e.which is 13