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,7 +35,11 @@ class App.ControllerForm extends App.Controller
|
||||||
formGen: ->
|
formGen: ->
|
||||||
App.Log.debug 'ControllerForm', 'formGen', @model.configure_attributes
|
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
|
# collect form attributes
|
||||||
@attributes = []
|
@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 = ''
|
||||||
|
|
Loading…
Reference in a new issue