2012-07-12 16:14:17 +02:00
|
|
|
/**
|
|
|
|
* File: ReportAdmin.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function($) {
|
|
|
|
$.entwine('ss', function($){
|
|
|
|
$('.ReportAdmin .cms-edit-form').entwine({
|
|
|
|
onsubmit: function(e) {
|
2012-12-04 10:22:29 +01:00
|
|
|
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
|
|
|
|
params = this.find(':input[name^=filters]').serializeArray();
|
2012-07-12 16:14:17 +02:00
|
|
|
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
|
2014-02-25 05:16:42 +01:00
|
|
|
if(params) url = $.path.addSearchParams(url, $.param(params));
|
2012-07-12 16:14:17 +02:00
|
|
|
$('.cms-container').loadPanel(url);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
})(jQuery);
|