mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
add type to PromptDialog
This commit is contained in:
parent
4552840440
commit
028417b4f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user