diff options
| author | jpl | 2017-02-07 18:13:09 +0100 |
|---|---|---|
| committer | jpl | 2017-02-07 18:13:09 +0100 |
| commit | bec7aba824319262f5ef1fe2486f642adf20e5f6 (patch) | |
| tree | e17945b797415639b46a9369b31b3b201a0e4a9e /app/assets/javascripts | |
| parent | 99bb4f06be67e42cf31646827bc0eaf698348cb2 (diff) | |
| download | chouette-core-bec7aba824319262f5ef1fe2486f642adf20e5f6.tar.bz2 | |
Refs #2535: fix multiselect on tables
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/selectable_table.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/selectable_table.coffee b/app/assets/javascripts/selectable_table.coffee index 7cddc3744..84a026d8a 100644 --- a/app/assets/javascripts/selectable_table.coffee +++ b/app/assets/javascripts/selectable_table.coffee @@ -5,7 +5,7 @@ if e.currentTarget.id == '0' selection = [] if e.currentTarget.checked - $("[type='checkbox']").each -> + $(this).closest('.table').find("[type='checkbox']").each -> $(this).prop('checked', true) # Add each element to selection selection.push($(this).attr('id')) @@ -14,7 +14,7 @@ selection.splice(0, 1) else - $("[type='checkbox']").each -> + $(this).closest('.table').find("[type='checkbox']").each -> $(this).prop('checked', false) # Empty selection selection = [] |
