From e9dc5a3ea04d997ff1a68be2945704098617c504 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 20 May 2016 04:30:15 +0200 Subject: [PATCH] Added integer ui element. --- .../javascripts/app/controllers/_ui_element/integer.coffee | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/assets/javascripts/app/controllers/_ui_element/integer.coffee 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 ) )