Removed not needed force of reload.

This commit is contained in:
Martin Edenhofer 2013-06-29 00:28:03 +02:00
parent 92fa09d5f2
commit dcd01d5862

View file

@ -41,13 +41,9 @@ class App.ControllerGenericNew extends App.ControllerModal
ui = @
object.save(
success: ->
# force to reload object
callbackReload = (user) ->
if ui.callback
ui.callback( user )
ui.modalHide()
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
if ui.callback
ui.callback( @ )
ui.modalHide()
error: ->
ui.log 'errors'
@ -91,13 +87,9 @@ class App.ControllerGenericEdit extends App.ControllerModal
ui = @
@item.save(
success: ->
# force to reload object
callbackReload = (user) ->
if ui.callback
ui.callback( user )
ui.modalHide()
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
if ui.callback
ui.callback( @ )
ui.modalHide()
error: =>
ui.log 'errors'