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