diff --git a/app/assets/javascripts/app/controllers/widget/switch_back_to_user.js.coffee b/app/assets/javascripts/app/controllers/widget/switch_back_to_user.js.coffee index 0d6f6af74..6913c1ea6 100644 --- a/app/assets/javascripts/app/controllers/widget/switch_back_to_user.js.coffee +++ b/app/assets/javascripts/app/controllers/widget/switch_back_to_user.js.coffee @@ -1,6 +1,6 @@ class Widget extends App.Controller events: - 'click .close': 'switchBack' + 'click .js-close': 'switchBack' constructor: -> super @@ -19,12 +19,12 @@ class Widget extends App.Controller # if no switch to user is active if !App.Config.get('switch_back_to_possible') || _.isEmpty( App.Session.all() ) @el.html('') - $('#app').removeClass('switch-back-to-user-space') + $('#app').removeClass('switchBackToUserSpace') return # show switch back widget @html App.view('widget/switch_back_to_user')() - $('#app').addClass('switch-back-to-user-space') + $('#app').addClass('switchBackToUserSpace') switchBack: (e) => e.preventDefault() diff --git a/app/assets/javascripts/app/views/widget/switch_back_to_user.jst.eco b/app/assets/javascripts/app/views/widget/switch_back_to_user.jst.eco index a451c0ad6..24cf3f419 100644 --- a/app/assets/javascripts/app/views/widget/switch_back_to_user.jst.eco +++ b/app/assets/javascripts/app/views/widget/switch_back_to_user.jst.eco @@ -1,4 +1,10 @@ -