diff --git a/app/assets/javascripts/app/controllers/_ui_element/integer.coffee b/app/assets/javascripts/app/controllers/_ui_element/integer.coffee new file mode 100644 index 000000000..6f5f7a7b4 --- /dev/null +++ b/app/assets/javascripts/app/controllers/_ui_element/integer.coffee @@ -0,0 +1,6 @@ +# coffeelint: disable=camel_case_classes +class App.UiElement.integer + @render: (attribute) -> + attribute.type = 'number' + attribute.step = '1' + $( App.view('generic/input')( attribute: attribute ) )