LP1670457 Action Menu Grid Selection Change
[Evergreen.git] / Open-ILS / web / js / ui / default / staff / services / grid.js
index ce84caa..57d93c8 100644 (file)
@@ -658,6 +658,9 @@ angular.module('egGridMod',
 
             // fires the disable handler function for a context action
             $scope.actionDisable = function(action) {
+                if(grid.getSelectedItems().length == 0 && action.handler.length > 0) {
+                    return true;
+                }
                 if (typeof action.disabled == 'undefined') {
                     return false;
                 }