From 7685d18709ad08b18de165c3f058923456e98eaf Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 11 Oct 2012 12:42:26 +0200 Subject: [PATCH] Small improvements. --- .../app/controllers/_application_controller_generic.js.coffee | 4 ++-- app/assets/javascripts/app/views/user_info.jst.eco | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 @@
-

<%- T('Customer') %>

+

<%- T('Customer') %>

<% if @user.image: %> <% end %>