fix modal in generic controller
like in manage/organizations
This commit is contained in:
parent
4a123b7a75
commit
4af0a468bb
1 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,8 @@ class App.ControllerGenericNew extends App.ControllerModal
|
||||||
screen: @screen || 'edit'
|
screen: @screen || 'edit'
|
||||||
autofocus: true
|
autofocus: true
|
||||||
)
|
)
|
||||||
@el = controller.form
|
|
||||||
|
@content = controller.form
|
||||||
|
|
||||||
@show()
|
@show()
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ class App.ControllerGenericEdit extends App.ControllerModal
|
||||||
screen: @screen || 'edit'
|
screen: @screen || 'edit'
|
||||||
autofocus: true
|
autofocus: true
|
||||||
)
|
)
|
||||||
@el = controller.form
|
@content = controller.form
|
||||||
|
|
||||||
@show()
|
@show()
|
||||||
|
|
||||||
|
@ -363,13 +364,13 @@ class App.GenericHistory extends App.ControllerModal
|
||||||
|
|
||||||
localItem = @reworkItems( @items )
|
localItem = @reworkItems( @items )
|
||||||
|
|
||||||
@html App.view('generic/history')(
|
@content = $ App.view('generic/history')(
|
||||||
items: localItem
|
items: localItem
|
||||||
)
|
)
|
||||||
|
|
||||||
@onShow()
|
@onShow()
|
||||||
|
|
||||||
@el.find('a[data-type="sortorder"]').bind(
|
@content.find('a[data-type="sortorder"]').bind(
|
||||||
'click',
|
'click',
|
||||||
(e) =>
|
(e) =>
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
Loading…
Reference in a new issue