From 60e259021a5c7b77794c02ad48a4bdd196fb7a55 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 23 Sep 2015 10:50:00 +0200 Subject: [PATCH] Fixed bindCol for tables. --- .../app/controllers/_application_controller_table.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee index 608bb7bc7..c26a157f4 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.js.coffee @@ -203,8 +203,8 @@ class App.ControllerTable extends App.Controller for event, callback of item.events do (table, event, callback) -> if cursorMap[event] - table.find("tbody > tr > td:nth-child(#{position}) span").css( 'cursor', cursorMap[event] ) - table.on( event, "tbody > tr > td:nth-child(#{position}) span", + table.find("tbody > tr > td:nth-child(#{position})").css( 'cursor', cursorMap[event] ) + table.on( event, "tbody > tr > td:nth-child(#{position})", (e) -> e.stopPropagation() id = $(e.target).parents('tr').data('id')