mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Merge branch 'master' of github.com:DataTables/DataTablesSrc
This commit is contained in:
parent
88c7044373
commit
635f35a63b
@ -1 +1 @@
|
|||||||
761265b0352d1f3d0e0c65ee3d10090495c8ff80
|
057cb866692ae6cbeeb90ef6f88921df10881bf0
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
SyntaxHighlighter.config.tagName = 'code';
|
SyntaxHighlighter.config.tagName = 'code';
|
||||||
|
|
||||||
$(document).ready( function () {
|
$(document).ready( function () {
|
||||||
|
if ( ! $.fn.dataTable ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var dt110 = $.fn.dataTable.Api ? true : false;
|
var dt110 = $.fn.dataTable.Api ? true : false;
|
||||||
|
|
||||||
// Work around for WebKit bug 55740
|
// Work around for WebKit bug 55740
|
||||||
|
10
media/js/jquery.dataTables.js
vendored
10
media/js/jquery.dataTables.js
vendored
@ -4352,12 +4352,16 @@
|
|||||||
var col = columns[i];
|
var col = columns[i];
|
||||||
var asSorting = col.asSorting;
|
var asSorting = col.asSorting;
|
||||||
var sTitle = col.sTitle.replace( /<.*?>/g, "" );
|
var sTitle = col.sTitle.replace( /<.*?>/g, "" );
|
||||||
var jqTh = $(col.nTh).removeAttr('aria-sort');
|
var th = col.nTh;
|
||||||
|
|
||||||
|
// IE7 is throwing an error when setting these properties with jQuery's
|
||||||
|
// attr() and removeAttr() methods...
|
||||||
|
th.removeAttribute('aria-sort');
|
||||||
|
|
||||||
/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
|
/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
|
||||||
if ( col.bSortable ) {
|
if ( col.bSortable ) {
|
||||||
if ( aSort.length > 0 && aSort[0].col == i ) {
|
if ( aSort.length > 0 && aSort[0].col == i ) {
|
||||||
jqTh.attr('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
|
th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
|
||||||
nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
|
nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -4373,7 +4377,7 @@
|
|||||||
label = sTitle;
|
label = sTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
jqTh.attr('aria-label', label);
|
th.setAttribute('aria-label', label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
media/js/jquery.js
vendored
10
media/js/jquery.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user