Follow up for issue #1133 - use correct constructor name to work also in precompiled environments.
This commit is contained in:
parent
d52634701d
commit
3b27a22364
1 changed files with 4 additions and 3 deletions
|
@ -579,14 +579,15 @@ class App.ControllerTable extends App.Controller
|
||||||
callback: (id) =>
|
callback: (id) =>
|
||||||
item = @model.find(id)
|
item = @model.find(id)
|
||||||
item.name = "Clone: #{item.name}"
|
item.name = "Clone: #{item.name}"
|
||||||
new App.ControllerGenericNew
|
new App.ControllerGenericNew(
|
||||||
item: item
|
item: item
|
||||||
pageData:
|
pageData:
|
||||||
object: item.constructor.name
|
object: item.constructor.className
|
||||||
callback: =>
|
callback: =>
|
||||||
@renderTableFull()
|
@renderTableFull()
|
||||||
genericObject: item.constructor.name
|
genericObject: item.constructor.className
|
||||||
container: @container
|
container: @container
|
||||||
|
)
|
||||||
|
|
||||||
if @destroy
|
if @destroy
|
||||||
@actions.push
|
@actions.push
|
||||||
|
|
Loading…
Reference in a new issue