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

6 lines
610 B
JavaScript

/*!
Deep linking options parsing support for DataTables
2017 SpryMedia Ltd - datatables.net/license
*/
(function(h,k,b){var i=b.fn.dataTable.ext.internal._fnSetObjectDataFn;b.fn.dataTable.ext.deepLink=function(d){for(var e=location.search.replace(/^\?/,"").split("&"),f={},c=0,j=e.length;c<j;c++){var a=e[c].split("="),g=decodeURIComponent(a[0]),a=decodeURIComponent(a[1]);if("true"===a)a=!0;else if("false"===a)a=!1;else if(a.match(/[^\d]/)){if(0===a.indexOf("{")||0===a.indexOf("["))try{a=b.parseJSON(a)}catch(h){}}else a*=1;("all"===d||-1!==b.inArray(g,d))&&i(g)(f,a)}return f}})(window,document,jQuery);