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.2 KiB
JavaScript
2 lines
1.2 KiB
JavaScript
2 years ago
|
/*! © Ulises Gomez / Gravity Lending, SpryMedia Ltd - datatables.net/license */
|
||
|
!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,t),n(t,0,e.document)}:n(jQuery,window,document)}(function(u,e,t,r){"use strict";var i=u.fn.dataTable;return i.Api.register("excludeSearch()",function(t){return this.iterator("table",function(e){e.exclude_search=t}),this}),i.ext.search.push(function(t,e){if(""===t.exclude_search||t.exclude_search===r||null===t.exclude_search)return!0;let n=!0;return e.forEach(e=>{e.toUpperCase().includes(t.exclude_search.toUpperCase())&&(n=!1)}),n}),i.ExcludeSearch=function(e){let t=new i.Api(e),n=u('<div class="mx-3 dataTables_filter"><label>Exclude: </label><input type="text" /></div>');n.find("input").on("input",function(){t.excludeSearch(u(this).val()).draw()}),this.node=function(){return n}},i.ext.feature.push({fnInit:function(e){return new i.ExcludeSearch(e).node()},cFeature:"X"}),i});
|