diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee index 0b1f42b05..e72974dbd 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee @@ -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()