18 | | addEvent(actionCheckboxes[i], 'click', function() { |
| 19 | addEvent(actionCheckboxes[i], 'click', function(e) { |
| 20 | if (!e) { var e = window.event; } |
| 21 | var target = e.target ? e.target : e.srcElement; |
| 22 | if (lastChecked && lastChecked != target && e.shiftKey == true) { |
| 23 | var inrange = false; |
| 24 | lastChecked.checked = target.checked; |
| 25 | Actions.toggleRow(lastChecked.parentNode.parentNode, target.checked); |
| 26 | for (var i = 0; i < actionCheckboxes.length; i++) { |
| 27 | if (actionCheckboxes[i] == lastChecked || actionCheckboxes[i] == target) { |
| 28 | inrange = (inrange) ? false : true; |
| 29 | } |
| 30 | if (inrange) { |
| 31 | actionCheckboxes[i].checked = target.checked; |
| 32 | Actions.toggleRow(actionCheckboxes[i].parentNode.parentNode, target.checked); |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | lastChecked = target; |