diff --git a/filtering/type-based/accent-neutralise.js b/filtering/type-based/accent-neutralise.js index 8bb700e..5fb0730 100644 --- a/filtering/type-based/accent-neutralise.js +++ b/filtering/type-based/accent-neutralise.js @@ -27,7 +27,7 @@ * $('#myInput').keyup( function () { * table * .search( - * jQuery.fn.DataTable.ext.type.search.string( this ) + * jQuery.fn.DataTable.ext.type.search.string( this.value ) * ) * .draw() * } ); diff --git a/pagination/input.js b/pagination/input.js index c8bb189..2db15dd 100644 --- a/pagination/input.js +++ b/pagination/input.js @@ -207,6 +207,8 @@ $.fn.dataTableExt.oPagination.input = { } else { + $(an).show(); + /* Loop over each instance of the pager */ for (var i = 0, iLen = an.length ; i < iLen ; i++) { diff --git a/sorting/turkish-string.js b/sorting/turkish-string.js index 0c1ee5f..e2d570a 100644 --- a/sorting/turkish-string.js +++ b/sorting/turkish-string.js @@ -17,7 +17,14 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "turkish-pre": function ( a ) { - var special_letters = { "İ": "ib", "I": "ia", "Ş": "sa", "Ğ": "ga", "Ü": "ua", "Ö": "oa", "Ç": "ca", "i": "ia", "ı": "ia", "ş": "sa", "ğ": "ga", "ü": "ua", "ö": "oa", "ç": "ca" }; + var special_letters = { + "C": "ca", "c": "ca", "Ç": "cb", "ç": "cb", + "G": "ga", "g": "ga", "Ğ": "gb", "ğ": "gb", + "I": "ia", "ı": "ia", "İ": "ib", "i": "ib", + "O": "oa", "o": "oa", "Ö": "ob", "ö": "ob", + "S": "sa", "s": "sa", "Ş": "sb", "ş": "sb", + "U": "ua", "u": "ua", "Ü": "ub", "ü": "ub" + }; for (var val in special_letters) a = a.split(val).join(special_letters[val]).toLowerCase(); return a;