fix modal in generic controller

like in manage/organizations
This commit is contained in:
Felix Niklas 2014-10-30 10:59:55 +01:00
parent 4a123b7a75
commit 4af0a468bb

View file

@ -12,7 +12,8 @@ class App.ControllerGenericNew extends App.ControllerModal
screen: @screen || 'edit'
autofocus: true
)
@el = controller.form
@content = controller.form
@show()
@ -62,7 +63,7 @@ class App.ControllerGenericEdit extends App.ControllerModal
screen: @screen || 'edit'
autofocus: true
)
@el = controller.form
@content = controller.form
@show()
@ -363,13 +364,13 @@ class App.GenericHistory extends App.ControllerModal
localItem = @reworkItems( @items )
@html App.view('generic/history')(
@content = $ App.view('generic/history')(
items: localItem
)
@onShow()
@el.find('a[data-type="sortorder"]').bind(
@content.find('a[data-type="sortorder"]').bind(
'click',
(e) =>
e.preventDefault()