From f09195787b047e53ad09207d8d3632a5305127b4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 8 Jun 2015 10:57:32 +0200 Subject: [PATCH] Moved delete icon to svg. --- app/assets/javascripts/app/controllers/session.js.coffee | 2 +- app/assets/javascripts/app/views/session.jst.eco | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/session.js.coffee b/app/assets/javascripts/app/controllers/session.js.coffee index 363b24660..a52e9198f 100644 --- a/app/assets/javascripts/app/controllers/session.js.coffee +++ b/app/assets/javascripts/app/controllers/session.js.coffee @@ -47,7 +47,7 @@ class Index extends App.ControllerContent destroy: (e) -> e.preventDefault() - sessionId = $( e.target ).data('session-id') + sessionId = $( e.target ).closest('a').data('session-id') @ajax( id: 'sessions/' + sessionId type: 'DELETE' diff --git a/app/assets/javascripts/app/views/session.jst.eco b/app/assets/javascripts/app/views/session.jst.eco index 0859e2984..52b064d04 100644 --- a/app/assets/javascripts/app/views/session.jst.eco +++ b/app/assets/javascripts/app/views/session.jst.eco @@ -20,7 +20,7 @@ <% if session.data.geo && session.data.geo.country_name: %><%= session.data.geo.country_name %> <%= session.data.geo.city_name %><% else: %><%= session.data.remote_id %><% end %> ? ? - + <% end %>