PHP Classes

File: source/asset/crules/datatables-plugins/sorting/turkish-string.js

Recommend this page to a friend!
  Classes of ask sa sa   Rimau waf   source/asset/crules/datatables-plugins/sorting/turkish-string.js   Download  
File: source/asset/crules/datatables-plugins/sorting/turkish-string.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Rimau waf
Application to configure Web server module options
Author: By
Last change:
Date: 1 year ago
Size: 1,002 bytes
 

Contents

Class file image Download
/** * Sorting in Javascript for Turkish Characters. This plug-in will replace the special * turkish letters (non english characters) and replace in English. * * * @name Turkish * @summary Sort Turkish characters * @author [Yuksel Beyti](http://yukselbeyti.com) * * @example * $('#example').dataTable({ * 'aoColumns' : [ * {'sType' : 'turkish'} * ] * }); */ 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" }; for (var val in special_letters) a = a.split(val).join(special_letters[val]).toLowerCase(); return a; }, "turkish-asc": function ( a, b ) { return ((a < b) ? -1 : ((a > b) ? 1 : 0)); }, "turkish-desc": function ( a, b ) { return ((a < b) ? 1 : ((a > b) ? -1 : 0)); } } );