Fixed search function.

This commit is contained in:
Jan Böhmer 2020-03-08 11:46:31 +01:00
parent ee496fb7bb
commit 120eb30b11
2 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,8 @@
$.fn.initDataTables = function(config, options) {
//Update default used url, so it reflects the current location (useful on single side apps)
$.fn.initDataTables.defaults.url = window.location.origin + window.location.pathname;
//CHANGED jbtronics: Preserve the get parameters (needed so we can pass additional params to query)
$.fn.initDataTables.defaults.url = window.location.origin + window.location.pathname + window.location.search;
var root = this,
config = $.extend({}, $.fn.initDataTables.defaults, config),