Moved delete icon to svg.
This commit is contained in:
parent
9da504152a
commit
f09195787b
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ class Index extends App.ControllerContent
|
||||||
|
|
||||||
destroy: (e) ->
|
destroy: (e) ->
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
sessionId = $( e.target ).data('session-id')
|
sessionId = $( e.target ).closest('a').data('session-id')
|
||||||
@ajax(
|
@ajax(
|
||||||
id: 'sessions/' + sessionId
|
id: 'sessions/' + sessionId
|
||||||
type: 'DELETE'
|
type: 'DELETE'
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<td title="<%= session.data.remote_id %>"><% 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 %></td>
|
<td title="<%= session.data.remote_id %>"><% 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 %></td>
|
||||||
<td><span class="humanTimeFromNow" data-time="<%- session.created_at %>">?</span></td>
|
<td><span class="humanTimeFromNow" data-time="<%- session.created_at %>">?</span></td>
|
||||||
<td><span class="humanTimeFromNow" data-time="<%- session.updated_at %>">?</span></td>
|
<td><span class="humanTimeFromNow" data-time="<%- session.updated_at %>">?</span></td>
|
||||||
<td><a href="#" data-session-id="<%- session.id %>" data-type="delete" class="glyphicon glyphicon-trash" title="<%- @Ti('Delete') %>"></a></td>
|
<td><a href="#" data-session-id="<%- session.id %>" data-type="delete" title="<%- @Ti('Delete') %>"><svg class="icon-trash" data-type="destroy"><use xlink:href="#icon-trash"></use></svg></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue