Fixed bindCol for tables.

This commit is contained in:
Martin Edenhofer 2015-09-23 10:50:00 +02:00
parent d546611432
commit 60e259021a

View file

@ -203,8 +203,8 @@ class App.ControllerTable extends App.Controller
for event, callback of item.events for event, callback of item.events
do (table, event, callback) -> do (table, event, callback) ->
if cursorMap[event] if cursorMap[event]
table.find("tbody > tr > td:nth-child(#{position}) span").css( 'cursor', cursorMap[event] ) table.find("tbody > tr > td:nth-child(#{position})").css( 'cursor', cursorMap[event] )
table.on( event, "tbody > tr > td:nth-child(#{position}) span", table.on( event, "tbody > tr > td:nth-child(#{position})",
(e) -> (e) ->
e.stopPropagation() e.stopPropagation()
id = $(e.target).parents('tr').data('id') id = $(e.target).parents('tr').data('id')