diff --git a/datatables.json b/datatables.json index 62eefa0..c22bb2c 100644 --- a/datatables.json +++ b/datatables.json @@ -5,6 +5,6 @@ "js/jquery.dataTables.min.js" ], "src-repo": "http://github.com/DataTables/DataTablesSrc", - "last-sync": "ae01542c8fad109cdffa27308678a421189df3f0", + "last-sync": "4b411b22e9741845e8b8ff04895e16d764052f4a", "last-tag": "1.10.19" } \ No newline at end of file diff --git a/js/jquery.dataTables.js b/js/jquery.dataTables.js index 5ee0ac2..b8cb9f0 100644 --- a/js/jquery.dataTables.js +++ b/js/jquery.dataTables.js @@ -4407,6 +4407,7 @@ // New search - start from the master array if ( invalidated || force || + regex || prevSearch.length > input.length || input.indexOf(prevSearch) !== 0 || settings.bSorted // On resort, the display master needs to be diff --git a/js/jquery.dataTables.min.js b/js/jquery.dataTables.min.js index fe35fe8..c23d03b 100644 --- a/js/jquery.dataTables.min.js +++ b/js/jquery.dataTables.min.js @@ -41,7 +41,7 @@ d}pa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;fo '"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("
",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("").append(j)),f=function(){var b=!this.value?"":this.value;b!=e.sSearch&&(ha(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,P(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT", g?Qa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}});return b[0]}function ha(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){yb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive); f(b);for(b=0;b