Skip to content

Commit

Permalink
Convert menu item title names to readable column names in order to pr…
Browse files Browse the repository at this point in the history
…eserve consistency with column headers that lack display names.
  • Loading branch information
eeiswerth committed Jul 14, 2015
1 parent e8fe073 commit 5d36da6
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 5d36da6

Please sign in to comment.