Skip to content

Commit

Permalink
Add number input type to modla dialog form (used for batch actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
PqBenoit committed Oct 12, 2016
1 parent f892683 commit c65f86a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,7 +1,7 @@
ActiveAdmin.modal_dialog = (message, inputs, callback)->
html = """<form id="dialog_confirm" title="#{message}"><ul>"""
for name, type of inputs
if /^(datepicker|checkbox|text)$/.test type
if /^(datepicker|checkbox|text|number)$/.test type
wrapper = 'input'
else if type is 'textarea'
wrapper = 'textarea'
Expand Down

0 comments on commit c65f86a

Please sign in to comment.