|
|
|
!function(t){var r,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),a=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||r(e),a(e,n),t(n,0,e.document)}:(a(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(i,e,n){"use strict";var r=i.fn.dataTable;return r.Api.register("searchFade()",function(){return this}),r.Api.register("searchFade().node()",function(){return this.settings()[0].searchFadeNode}),r.SearchFade=function(e){var n,d=new r.Api(e),t=i('<div class="searchFade"/>');d.settings()[0].searchFadeNode=t,e=d,(n=t).empty(),n.append("Search: "),i('<input type="text" class="searchFadeInput'+e.settings()[0].sTableId+'">').appendTo(n),t.on("keyup redraw","input",function(){d.rows(":visible").every(function(e,n,t){var r=!0,a=i(".searchFadeInput"+d.settings()[0].sTableId).val();a.length&&(r=d.row(e).data().some(function(e){return null!=e.match(new RegExp(a,"i"))})),i(d.row(e).node()).toggleClass("notMatched",!r)})}),d.on("draw",function(){i("input",t).trigger("redraw")}),this.node=function(){return t}},r.ext.feature.push({fnInit:function(e){return new r.SearchFade(e).node()},cFeature:"F"}),r.feature.register("searchFade",function(e){return new r.SearchFade(e).node()}),i(n).on("init.dt",function(e,n){"dt"===e.namespace&&(n.oInit.searchFade||r.defaults.searchFade)&&r.SearchFade(n)}),r});
|