This commit is contained in:
parent
5b38c9e546
commit
fb24de11cc
2 changed files with 8 additions and 1 deletions
|
@ -412,6 +412,12 @@ class App.ControllerTable extends App.Controller
|
||||||
return if !@bindCheckbox
|
return if !@bindCheckbox
|
||||||
return if !@bindCheckbox.events
|
return if !@bindCheckbox.events
|
||||||
return if _.isEmpty(clicks)
|
return if _.isEmpty(clicks)
|
||||||
|
|
||||||
|
# If a select_all callback exists, then trigger it once insteading of triggering the callback once for each checkbox
|
||||||
|
if @bindCheckbox.select_all
|
||||||
|
@bindCheckbox.select_all(clicks[0]..., e)
|
||||||
|
return
|
||||||
|
|
||||||
for event, callback of @bindCheckbox.events
|
for event, callback of @bindCheckbox.events
|
||||||
if event == 'click' || event == 'change'
|
if event == 'click' || event == 'change'
|
||||||
for click in clicks
|
for click in clicks
|
||||||
|
@ -1007,4 +1013,4 @@ class App.ControllerTable extends App.Controller
|
||||||
for position in [0..array1.length-1]
|
for position in [0..array1.length-1]
|
||||||
if array1[position] isnt array2[position]
|
if array1[position] isnt array2[position]
|
||||||
return position
|
return position
|
||||||
true
|
true
|
||||||
|
|
|
@ -1175,6 +1175,7 @@ class Table extends App.Controller
|
||||||
bindCheckbox:
|
bindCheckbox:
|
||||||
events:
|
events:
|
||||||
'click': callbackCheckbox
|
'click': callbackCheckbox
|
||||||
|
select_all: callbackCheckbox
|
||||||
)
|
)
|
||||||
|
|
||||||
@renderPopovers()
|
@renderPopovers()
|
||||||
|
|
Loading…
Reference in a new issue