From 83bc41793301234403e45a0bbf6902cb26bb90a9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 28 Apr 2013 23:20:32 +0200 Subject: [PATCH] Added missing require attribute. --- .../app/controllers/_application_controller_form.js.coffee | 3 ++- app/assets/javascripts/app/views/generic/select.jst.eco | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee index a94ca35a8..e45b2c1e8 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee @@ -4,7 +4,8 @@ class App.ControllerForm extends App.Controller @[key] = value @attribute_count = 0 - @form = @formGen() + if !@form + @form = @formGen() # @log 'form', @form if @el @el.prepend( @form ) diff --git a/app/assets/javascripts/app/views/generic/select.jst.eco b/app/assets/javascripts/app/views/generic/select.jst.eco index b23b54b55..18f6eede3 100644 --- a/app/assets/javascripts/app/views/generic/select.jst.eco +++ b/app/assets/javascripts/app/views/generic/select.jst.eco @@ -1,4 +1,4 @@ - <%= @attribute.required %> <%= @attribute.autofocus %>> <% for row in @attribute.options: %> <% end %>