@ -46,9 +46,9 @@ function highlight( body, table )
table.columns().every( function () {
var column = this;
column.nodes().flatten().to$().unhighlight({ className: 'column_highlight' });
column.nodes().flatten().to$().highlight( $.trim( column.search() ).split(/\s+/), { className: 'column_highlight' } );
column.nodes().flatten().to$().highlight( column.search().trim().split(/\s+/), { className: 'column_highlight' } );
} );
body.highlight( $.trim( table.search() ).split(/\s+/) );
body.highlight( table.search().trim().split(/\s+/) );
}
@ -25,8 +25,8 @@
"date-euro-pre": function ( a ) {
var x;
if ( $.trim(a) !== '' ) {
if ( a.trim() !== '' ) {
var frDatea = $.trim(a).split(' ');
var frDatea = a.trim().split(' ');
var frTimea = (undefined != frDatea[1]) ? frDatea[1].split(':') : [00,00,00];
var frDatea2 = frDatea[0].split('/');
x = (frDatea2[2] + frDatea2[1] + frDatea2[0] + frTimea[0] + frTimea[1] + ((undefined != frTimea[2]) ? frTimea[2] : 0)) * 1;
@ -40,7 +40,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
// Strip out surrounding white space
d = $.trim( d );
d = d.trim();
// Null and empty values are acceptable
@ -62,7 +62,7 @@ $.fn.dataTable.moment = function ( format, locale, reverseEmpties ) {
return !moment(d, format, locale, true).isValid() ?
@ -21,7 +21,7 @@ var persianSort = [ 'آ', 'ا', 'ب', 'پ', 'ت', 'ث', 'ج', 'چ', 'ح', 'خ',
'س', 'ش', 'ص', 'ط', 'ظ', 'ع', 'غ', 'ف', 'ق', 'ک', 'گ', 'ل', 'م', 'ن', 'و', 'ه', 'ی', 'ي' ];
function GetUniCode(source) {
source = $.trim(source);
source = source.trim();
var result = '';
var i, index;
for (i = 0; i < source.length; i++) {
@ -18,7 +18,7 @@ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData )
{
sData = typeof sData.replace == 'function' ?
sData.replace( /<[\s\S]*?>/g, "" ) : sData;
sData = $.trim(sData);
sData = sData.trim();
var sValidFirstChars = "0123456789-";
var sValidChars = "0123456789.";