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 @@