staff web: grid shift-click
authorBill Erickson <berick@esilibrary.com>
Thu, 27 Mar 2014 22:10:38 +0000 (18:10 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 27 Mar 2014 22:10:38 +0000 (18:10 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/grid.js

index adc655c..75ca484 100644 (file)
@@ -318,7 +318,8 @@ angular.module('egGridMod', ['egCoreMod', 'egListMod', 'egUiMod', 'ui.bootstrap'
 
                 } else if ($event.shiftKey) { 
                     // shift-click
-                    if (!self.lastSelectedRowIndex) {
+                    if (!self.lastSelectedRowIndex || 
+                            index == self.lastSelectedRowIndex) {
                         // no source row, just do a simple select
                         $scope.list.selectOne(index);
                         self.lastSelectedRowIndex = index;