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.
Plugins/features/deepLink/dataTables.deepLink.min.js

2 lines
980 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
!function(t){var o,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),i=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||o(e),i(e,n),t(n,0,e.document)}:(i(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(a,e,n,t){"use strict";var u=a.fn.dataTable;return u.ext.deepLink=function(e){for(var n=location.search.replace(/^\?/,"").split("&"),t={},o=0,i=n.length;o<i;o++){var r=n[o].split("="),d=decodeURIComponent(r[0]),r=decodeURIComponent(r[1]);if("true"===r)r=!0;else if("false"===r)r=!1;else if(r.match(/[^\d]/)||"search.search"===d){if(0===r.indexOf("{")||0===r.indexOf("["))try{r=a.parseJSON(r)}catch(e){}}else r=+r;"all"!==e&&-1===a.inArray(d,e)||u.util.set(d)(t,r,{})}return t},u});