Fixed bindCol for tables.
This commit is contained in:
parent
d546611432
commit
60e259021a
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue