datatables.net-plugins
Version:
Various small plug-ins for DataTables including feature, ordering, search and internationalisation plug-ins.
2 lines • 1.04 kB
JavaScript
/*! © SpryMedia Ltd - datatables.net/license */
!function(r){var n,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return r(e,window,document)}):"object"==typeof exports?(n=require("jquery"),o=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||n(e),o(e,t),r(t,e,e.document)}:(o(window,n),module.exports=r(n,window,window.document))):r(jQuery,window,document)}(function(e,o,t){"use strict";var d=e.fn.dataTable;return d.intlOrder=function(e,t){var r,n;o.Intl&&(r=new Intl.Collator(e,t),e=d.ext.type,t=r.compare,n=function(e,t){return-1*r.compare(e,t)},delete e.order["string-pre"],e.order["string-asc"]=t,e.order["string-desc"]=n,e.order["string-utf8-asc"]=t,e.order["string-utf8-desc"]=n,e.order["html-pre"]=d.util.stripHtml,e.order["html-asc"]=t,e.order["html-desc"]=n,e.order["html-utf8-pre"]=d.util.stripHtml,e.order["html-utf8-asc"]=t,e.order["html-utf8-desc"]=n)},d.ext.type.order.intl=d.intlOrder,d});