You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
/*! © SpryMedia Ltd - datatables.net/license */
|
|
!function(t){var a,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(a=require("jquery"),r=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||a(e),r(e,n),t(n,0,e.document)}:(r(window,a),module.exports=t(a,window,window.document))):t(jQuery,window,document)}(function(i,e,n,t){"use strict";var a=i.fn.dataTable;return a.Api.register("searchFade()",function(){return this}),a.Api.register("searchFade().node()",function(){return this.settings()[0].searchFadeNode}),a.SearchFade=function(e){var n,d=new a.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 a=!0,r=i(".searchFadeInput"+d.settings()[0].sTableId).val();r.length&&(a=d.row(e).data().some(function(e){return null!=e.match(new RegExp(r,"i"))})),i(d.row(e).node()).toggleClass("notMatched",!a)})}),d.on("draw",function(){i("input",t).trigger("redraw")}),this.node=function(){return t}},a.ext.feature.push({fnInit:function(e){return new a.SearchFade(e).node()},cFeature:"F"}),i(n).on("init.dt",function(e,n){"dt"===e.namespace&&(n.oInit.searchFade||a.defaults.searchFade)&&a.SearchFade(n)}),a}); |