Improved error handling.

This commit is contained in:
Martin Edenhofer 2015-08-17 17:36:52 +02:00
parent 06f02b2298
commit d5421e38ee

View file

@ -29,6 +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