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.
4 lines
627 B
JavaScript
4 lines
627 B
JavaScript
/*! Deep linking options parsing support for DataTables
|
|
* 2017 SpryMedia Ltd - datatables.net/license
|
|
*/
|
|
!function(l){var f=l.fn.dataTable.ext.internal._fnSetObjectDataFn;l.fn.dataTable.ext.deepLink=function(e){for(var a=location.search.replace(/^\?/,"").split("&"),n={},t=0,r=a.length;t<r;t++){var i=a[t].split("="),c=decodeURIComponent(i[0]),i=decodeURIComponent(i[1]);if("true"===i)i=!0;else if("false"===i)i=!1;else if(i.match(/[^\d]/)||"search.search"===c){if(0===i.indexOf("{")||0===i.indexOf("["))try{i=l.parseJSON(i)}catch(e){}}else i=+i;"all"!==e&&-1===l.inArray(c,e)||f(c)(n,i)}return n}}((window,document,jQuery)); |