Fixed form handler with noFieldset param. Browser tests on next commit.
This commit is contained in:
parent
0e03e6d216
commit
218c247478
1 changed files with 5 additions and 4 deletions
|
@ -35,6 +35,10 @@ class App.ControllerForm extends App.Controller
|
|||
formGen: ->
|
||||
App.Log.debug 'ControllerForm', 'formGen', @model.configure_attributes
|
||||
|
||||
# check if own fieldset should be generated
|
||||
if @noFieldset
|
||||
fieldset = @el
|
||||
else
|
||||
fieldset = $('<fieldset></fieldset>')
|
||||
|
||||
# collect form 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 = ''
|
||||
|
|
Loading…
Reference in a new issue