Permalink
Browse files

Merge pull request #4648 from PqBenoit/add_number_input_type_to_modal

Add number input type to modla dialog form (used for batch actions)
  • Loading branch information...
2 parents 1713ec9 + c65f86a commit 9eedf1754fbd02a73cc423561577d7b137312aec @timoschilling timoschilling committed on GitHub Jan 5, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/active_admin/lib/modal_dialog.js.coffee
@@ -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'

0 comments on commit 9eedf17

Please sign in to comment.