Skip to content

Commit

Permalink
Merge pull request #4648 from PqBenoit/add_number_input_type_to_modal
Browse files Browse the repository at this point in the history
Add number input type to modla dialog form (used for batch actions)
  • Loading branch information
timoschilling committed Jan 5, 2017
2 parents 1713ec9 + c65f86a commit 9eedf17
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 9eedf17

Please sign in to comment.