2013-01-17 01:22:13 +01:00
|
|
|
/**
|
|
|
|
* File: ReportAdmin.js
|
|
|
|
*/
|
|
|
|
|
2023-09-20 20:41:00 +02:00
|
|
|
(function ($) {
|
|
|
|
$.entwine("ss", function ($) {
|
|
|
|
$(".ReportAdmin .cms-edit-form").entwine({
|
|
|
|
onsubmit: function (e) {
|
|
|
|
let url = $.path.parseUrl(document.location.href).hrefNoSearch;
|
|
|
|
let params = this.find(":input[name^=filters]").serializeArray();
|
|
|
|
|
|
|
|
try {
|
|
|
|
params = $.grep(params, function (param) {
|
|
|
|
// filter out empty
|
|
|
|
return param.value;
|
|
|
|
});
|
|
|
|
|
|
|
|
// convert params to a query string
|
|
|
|
params = $.param(params);
|
|
|
|
|
|
|
|
// append query string to url
|
|
|
|
url += "?" + params;
|
|
|
|
|
|
|
|
$(".cms-container").loadPanel(url);
|
|
|
|
} catch (err) {
|
|
|
|
console.error(err);
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
2013-01-17 01:22:13 +01:00
|
|
|
})(jQuery);
|