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

Commit 7e16400

Browse files
author
Gabriel Schulhof
committed
Table: Columntoggle: Take into account <abbr> title when generating columntoggle checkbox. Fixes #6053 - abbr title in th not picked up for column toggle.
1 parent a39997c commit 7e16400

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/widgets/table.columntoggle.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ $.widget( "mobile.table", $.mobile.table, {
9292
cells.addClass( opts.classes.priorityPrefix + priority );
9393

9494
if ( !keep ) {
95-
$("<label><input type='checkbox' checked />" + header.text() + "</label>" )
95+
$("<label><input type='checkbox' checked />" +
96+
( header.children( "abbr" ).first().attr( "title" ) ||
97+
header.text() ) +
98+
"</label>" )
9699
.appendTo( menu )
97100
.children( 0 )
98101
.jqmData( "cells", cells )

0 commit comments

Comments
 (0)