// 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') {