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 bdbf98b5f..9aea3189d 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.js.coffee @@ -98,11 +98,11 @@ class App.ControllerGenericEdit extends App.ControllerModal # save object @item.save( success: => - @log 'lll', @callback(@item), @required + if @callback + @callback(@item) @modalHide() error: => @log 'errors' - @modalHide() ) diff --git a/app/assets/javascripts/app/views/user_info.jst.eco b/app/assets/javascripts/app/views/user_info.jst.eco index 6fe7102dd..c3ee1865c 100644 --- a/app/assets/javascripts/app/views/user_info.jst.eco +++ b/app/assets/javascripts/app/views/user_info.jst.eco @@ -1,5 +1,5 @@