LP#1402797 If no row is currently selected on right-click, select the clicked row
authorMike Rylander <mrylander@gmail.com>
Tue, 10 Feb 2015 15:48:11 +0000 (10:48 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:09 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/grid.js

index 42330b1..7ba2f78 100644 (file)
@@ -506,6 +506,9 @@ angular.module('egGridMod',
 
             $scope.action_context_showing = false;
             $scope.showActionContextMenu = function ($event) {
+                if (!grid.getSelectedItems().length) // Nothing selected, fire the click event
+                    $event.target.click();
+
                 var current_parent = $scope.grid_element;
                 if ($scope.action_context_showing) {
                     current_parent = $('body');