mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-19 10:58:20 +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
|
return unless d.data
|
||||||
(d.find "content0").set "text", d.data.label
|
(d.find "content0").set "text", d.data.label
|
||||||
(d.find "content1").value = d.data.value if d.data.value
|
(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) ->
|
xtra: (d) ->
|
||||||
$( d.find "content1" ).keyup (e) ->
|
$( d.find "content1" ).keyup (e) ->
|
||||||
(d.find "bt0").trigger() if e.which is 13
|
(d.find "bt0").trigger() if e.which is 13
|
||||||
|
Loading…
Reference in New Issue
Block a user