From: Mike Rylander Date: Tue, 10 Feb 2015 15:48:11 +0000 (-0500) Subject: LP#1402797 If no row is currently selected on right-click, select the clicked row X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b787314e7a5ddf07c73903bc2ce2da3c98c4c17d;p=evergreen%2Fmasslnc.git LP#1402797 If no row is currently selected on right-click, select the clicked row Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/ui/default/staff/services/grid.js b/Open-ILS/web/js/ui/default/staff/services/grid.js index 42330b12d3..7ba2f78494 100644 --- a/Open-ILS/web/js/ui/default/staff/services/grid.js +++ b/Open-ILS/web/js/ui/default/staff/services/grid.js @@ -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');