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 = @
|
ui = @
|
||||||
object.save(
|
object.save(
|
||||||
success: ->
|
success: ->
|
||||||
|
if ui.callback
|
||||||
# force to reload object
|
ui.callback( @ )
|
||||||
callbackReload = (user) ->
|
ui.modalHide()
|
||||||
if ui.callback
|
|
||||||
ui.callback( user )
|
|
||||||
ui.modalHide()
|
|
||||||
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
|
|
||||||
|
|
||||||
error: ->
|
error: ->
|
||||||
ui.log 'errors'
|
ui.log 'errors'
|
||||||
|
@ -91,13 +87,9 @@ class App.ControllerGenericEdit extends App.ControllerModal
|
||||||
ui = @
|
ui = @
|
||||||
@item.save(
|
@item.save(
|
||||||
success: ->
|
success: ->
|
||||||
|
if ui.callback
|
||||||
# force to reload object
|
ui.callback( @ )
|
||||||
callbackReload = (user) ->
|
ui.modalHide()
|
||||||
if ui.callback
|
|
||||||
ui.callback( user )
|
|
||||||
ui.modalHide()
|
|
||||||
App.Collection.find( ui['genericObject'], @id, callbackReload , true )
|
|
||||||
|
|
||||||
error: =>
|
error: =>
|
||||||
ui.log 'errors'
|
ui.log 'errors'
|
||||||
|
|
Loading…
Reference in a new issue