Merge pull request #956 from stojg/reportadmin-bug

BUG Report admin don't listen to filters
This commit is contained in:
Will Rossiter 2014-03-13 10:41:55 +13:00
commit dca9c7ca65

View File

@ -9,7 +9,7 @@
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
params = this.find(':input[name^=filters]').serializeArray();
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
if(params) url = $.path.addSearchParams(url, params);
if(params) url = $.path.addSearchParams(url, $.param(params));
$('.cms-container').loadPanel(url);
return false;
}