Skip to content

Commit

Permalink
now works for images too
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Boutell committed Mar 26, 2019
1 parent 38f4257 commit 778bb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/apostrophe-pieces/public/js/manager-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ apos.define('apostrophe-pieces-manager-modal', {
// If shift key is pressed and the checkbox is not checked.
if (e.shiftKey && !box.checked) {
// Get the siblings for the checkboxes that are being checked.
var $checkboxesInScope = $(box).closest('tbody').find('input') || [];
var $checkboxesInScope = $(box).closest('[data-items]').find('input') || [];
// Get the Index of the currently selected checkbox. (The one checked with holiding shift)
var startIndex = $checkboxesInScope.index(box);
// Get the index of the previously selected checkbox.
Expand Down

0 comments on commit 778bb89

Please sign in to comment.