Fixed form handler with noFieldset param. Browser tests on next commit.

This commit is contained in:
Martin Edenhofer 2015-01-22 11:47:11 +01:00
parent 0e03e6d216
commit 218c247478

View file

@ -35,6 +35,10 @@ class App.ControllerForm extends App.Controller
formGen: -> formGen: ->
App.Log.debug 'ControllerForm', 'formGen', @model.configure_attributes App.Log.debug 'ControllerForm', 'formGen', @model.configure_attributes
# check if own fieldset should be generated
if @noFieldset
fieldset = @el
else
fieldset = $('<fieldset></fieldset>') fieldset = $('<fieldset></fieldset>')
# collect form attributes # collect form attributes
@ -81,9 +85,6 @@ class App.ControllerForm extends App.Controller
item = @formGenItem( attribute, className, fieldset, attribute_count ) item = @formGenItem( attribute, className, fieldset, attribute_count )
item.appendTo(fieldset) item.appendTo(fieldset)
if @noFieldset
fieldset = fieldset.children()
if @fullForm if @fullForm
if !@formClass if !@formClass
@formClass = '' @formClass = ''