From b27e813ddc2b4474b21e97b8de04a048caaed330 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 17 Aug 2015 17:51:42 +0200 Subject: [PATCH] Prevent clickable tags. --- .../javascripts/app/controllers/_profile/devices.js.coffee | 7 ++----- app/assets/stylesheets/zammad.css.scss | 7 ++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_profile/devices.js.coffee b/app/assets/javascripts/app/controllers/_profile/devices.js.coffee index 830397831..4cd832e12 100644 --- a/app/assets/javascripts/app/controllers/_profile/devices.js.coffee +++ b/app/assets/javascripts/app/controllers/_profile/devices.js.coffee @@ -29,11 +29,8 @@ class Index extends App.Controller delete: (e) => e.preventDefault() - id = $(e.target).data('device-id') - if !id - id = $(e.target).closest('a').data('device-id') - console.log('ID', id) - # get data + id = $(e.target).closest('a').data('device-id') + @ajax( id: 'user_devices_delete' type: 'DELETE' diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss index 99662b88c..018af53e5 100644 --- a/app/assets/stylesheets/zammad.css.scss +++ b/app/assets/stylesheets/zammad.css.scss @@ -27,10 +27,15 @@ body { flex-direction: column; } +/* prevent clickable */ +use { + pointer-events: none; +} + p { margin: 14px 0; color: hsl(60,1%,34%); - + &.subtle { color: hsl(60,1%,74%); }