LP#2013223: quiet browser console noise from some AngularJS grids
[evergreen-equinox.git] / Open-ILS / web / js / ui / default / staff / services / grid.js
index 57d93c8..8d07f9b 100644 (file)
@@ -658,7 +658,12 @@ 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) {
+                if (!action.handler) {
+                    // we're probably a divider, so there's no action
+                    // to enable
+                    return true;
+                }
+                if (grid.getSelectedItems().length == 0 && action.handler.length > 0) {
                     return true;
                 }
                 if (typeof action.disabled == 'undefined') {