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