Skip to content

Commit

Permalink
Merge pull request #3979 from eeiswerth/master
Browse files Browse the repository at this point in the history
Convert menu item title names to readable column names
  • Loading branch information
PaulL1 committed Jul 14, 2015
2 parents e8fe073 + 5d36da6 commit 6a69120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/directives/ui-grid-menu-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ angular.module('ui.grid')
*
*/
setMenuItemTitle: function( menuItem, colDef, grid ){
var title = grid.options.gridMenuTitleFilter( colDef.displayName || colDef.name || colDef.field );
var title = grid.options.gridMenuTitleFilter( colDef.displayName || gridUtil.readableColumnName(colDef.name) || colDef.field );

if ( typeof(title) === 'string' ){
menuItem.title = title;
Expand Down

0 comments on commit 6a69120

Please sign in to comment.