1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

Site: Fix links

This commit is contained in:
Allan Jardine 2014-02-04 10:44:10 +00:00
parent 2d7517808a
commit 88c7044373
4 changed files with 10 additions and 15 deletions

View File

@ -1 +1 @@
f80c5a6d33beae4748e0c4d68c286074ec8c77fe
761265b0352d1f3d0e0c65ee3d10090495c8ff80

View File

@ -3,9 +3,6 @@
SyntaxHighlighter.config.tagName = 'code';
$(document).ready( function () {
if ( ! $.fn.dataTable ) {
return;
}
var dt110 = $.fn.dataTable.Api ? true : false;
// Work around for WebKit bug 55740

View File

@ -4352,16 +4352,12 @@
var col = columns[i];
var asSorting = col.asSorting;
var sTitle = col.sTitle.replace( /<.*?>/g, "" );
var th = col.nTh;
// IE7 is throwing an error when setting these properties with jQuery's
// attr() and removeAttr() methods...
th.removeAttribute('aria-sort');
var jqTh = $(col.nTh).removeAttr('aria-sort');
/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
if ( col.bSortable ) {
if ( aSort.length > 0 && aSort[0].col == i ) {
th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
jqTh.attr('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
}
else {
@ -4377,7 +4373,7 @@
label = sTitle;
}
th.setAttribute('aria-label', label);
jqTh.attr('aria-label', label);
}
}

10
media/js/jquery.js vendored

File diff suppressed because one or more lines are too long