Skip to content

Commit 82f95e7

Browse files
committed
Corrected issue with grouping of cells containing HTML tags
1 parent df81f91 commit 82f95e7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/dataTables.alphabetSearch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! AlphabetSearch for DataTables v1.2.2
1+
/*! AlphabetSearch for DataTables v1.2.3
22
* 2014 SpryMedia Ltd - datatables.net/license
33
* Gyrocode - MIT License
44
*/
@@ -7,7 +7,7 @@
77
* @summary AlphabetSearch
88
* @description Show an set of alphabet buttons alongside a table providing
99
* search input options
10-
* @version 1.2.2
10+
* @version 1.2.3
1111
* @file dataTables.alphabetSearch.js
1212
* @author SpryMedia Ltd (www.sprymedia.co.uk)
1313
* @contact www.sprymedia.co.uk/contact
@@ -355,7 +355,7 @@ $.fn.dataTable.AlphabetSearch = function ( context ) {
355355
var group_last = null;
356356

357357
api.column(context.alphabetSearch.column, { page: 'current' }).data().each(function (name, index){
358-
var group = name.charAt(0).toUpperCase();
358+
var group = name.replace(/<.*?>/g, '').charAt(0).toUpperCase();
359359

360360
if (group_last !== group) {
361361
$(rows).eq(index).before(

js/dataTables.alphabetSearch.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)