Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Table: Columntoggle: Take into account <abbr> title when generating c…
Browse files Browse the repository at this point in the history
…olumntoggle checkbox. Fixes #6053 - abbr title in th not picked up for column toggle.
  • Loading branch information
Gabriel Schulhof committed Aug 14, 2013
1 parent a39997c commit 7e16400
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/widgets/table.columntoggle.js
Expand Up @@ -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 )
Expand Down

0 comments on commit 7e16400

Please sign in to comment.