Permalink
Browse files

Table: Columntoggle: Take into account <abbr> title when generating c…

…olumntoggle checkbox. Fixes #6053 - abbr title in th not picked up for column toggle.
  • Loading branch information...
gabrielschulhof committed Aug 14, 2013
1 parent a39997c commit 7e164004e8fcc71683b87fe3a4ffae01b48a1150
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/widgets/table.columntoggle.js
@@ -92,7 +92,10 @@ $.widget( "mobile.table", $.mobile.table, {
cells.addClass( opts.classes.priorityPrefix + priority );
if ( !keep ) {
$("<label><input type='checkbox' checked />" + header.text() + "</label>" )
$("<label><input type='checkbox' checked />" +
( header.children( "abbr" ).first().attr( "title" ) ||
header.text() ) +
"</label>" )
.appendTo( menu )
.children( 0 )
.jqmData( "cells", cells )

0 comments on commit 7e16400

Please sign in to comment.