2013-01-17 01:22:13 +01:00
|
|
|
/**
|
|
|
|
* File: ReportAdmin.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function($) {
|
|
|
|
$.entwine('ss', function($){
|
|
|
|
$('.ReportAdmin .cms-edit-form').entwine({
|
|
|
|
onsubmit: function(e) {
|
2016-09-15 05:44:03 +02:00
|
|
|
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
|
2013-01-17 01:22:13 +01:00
|
|
|
params = this.find(':input[name^=filters]').serializeArray();
|
|
|
|
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
|
2014-03-12 23:35:43 +01:00
|
|
|
if(params) url = $.path.addSearchParams(url, $.param(params));
|
2013-01-17 01:22:13 +01:00
|
|
|
$('.cms-container').loadPanel(url);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})(jQuery);
|