1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00
Add requested changes
This commit is contained in:
David Steinkopff 2013-02-28 10:27:15 +01:00
commit 8efdd92a46
2 changed files with 4 additions and 3 deletions

View File

@ -631,6 +631,7 @@
*/
function _fnAddTr( oSettings, trs )
{
var fnTrimTD = oSettings.fnTrimTD || function(td) { return $.trim(td.innerHTML); };
// Allow an individual node to be passed in
if ( ! trs instanceof $ ) {
trs = $(trs);
@ -648,7 +649,7 @@
name = td.nodeName.toUpperCase();
if ( name == "TD" || name == "TH" )
{
d.push( $.trim(td.innerHTML) );
d.push( fnTrimTD(td) );
tds.push( td );
}
td = td.nextSibling;
@ -2155,7 +2156,7 @@
nFilter._DT_Input = jqFilter[0];
jqFilter.val( oPreviousSearch.sSearch.replace('"','"') );
jqFilter.bind( 'keyup.DT search', function(e) {
jqFilter.bind( 'keyup.DT search.DT', function(e) {
/* Update all other filter input elements for the new display */
var n = oSettings.aanFeatures.f;
var val = this.value==="" ? "" : this.value; // mental IE8 fix :-(

View File

@ -29,7 +29,7 @@ function _fnFeatureHtmlFilter ( oSettings )
nFilter._DT_Input = jqFilter[0];
jqFilter.val( oPreviousSearch.sSearch.replace('"','"') );
jqFilter.bind( 'keyup.DT search', function(e) {
jqFilter.bind( 'keyup.DT search.DT', function(e) {
/* Update all other filter input elements for the new display */
var n = oSettings.aanFeatures.f;
var val = this.value==="" ? "" : this.value; // mental IE8 fix :-(