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 %>