Removed not needed force of reload.
This commit is contained in:
parent
92fa09d5f2
commit
dcd01d5862
1 changed files with 6 additions and 14 deletions
|
@ -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.callback( @ )
|
||||
ui.modalHide()
|
||||
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
|
||||
|
||||
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.callback( @ )
|
||||
ui.modalHide()
|
||||
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
|
||||
|
||||
error: =>
|
||||
ui.log 'errors'
|
||||
|
|
Loading…
Reference in a new issue