0001-backoffice-fix-URL-used-for-autocomplete-criteias-on.patch
wcs/qommon/static/js/wcs.listing.js | ||
---|---|---|
180 | 180 |
$('[data-refresh-options]').each(function(idx, elem) { |
181 | 181 |
var $select = $(elem); |
182 | 182 |
var current_value = $select.val(); |
183 |
var filter_path = pathname + 'filter-options?filter_field_id=' + $(elem).data('refresh-options') + '&' + listing_settings.qs; |
|
183 |
var filter_path = pathname.replace(/stats$/, '') + 'filter-options?filter_field_id=' + $(elem).data('refresh-options') + '&' + listing_settings.qs;
|
|
184 | 184 |
$.ajax({ |
185 | 185 |
url: filter_path, |
186 | 186 |
success: function(data) { |
... | ... | |
300 | 300 |
minimumInputLength: 1, |
301 | 301 |
ajax: { |
302 | 302 |
url: function() { |
303 |
var pathname = window.location.pathname.replace(/^\/+/, '/'); |
|
303 |
var pathname = window.location.pathname.replace(/^\/+/, '/').replace(/stats$/, '');
|
|
304 | 304 |
var filter_settings = $('form#listing-settings').serialize(); |
305 | 305 |
return pathname + 'filter-options?filter_field_id=' + filter_field_id + '&' + filter_settings; |
306 | 306 |
}, |
307 |
- |