2011-09-03 14:25:53 +00:00
|
|
|
module SimpleForm
|
|
|
|
module Inputs
|
|
|
|
class RangeInput < NumericInput
|
|
|
|
def input
|
2011-12-04 15:15:27 +00:00
|
|
|
if html5?
|
2011-09-03 14:25:53 +00:00
|
|
|
input_html_options[:type] ||= "range"
|
|
|
|
input_html_options[:step] ||= 1
|
|
|
|
end
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|