Quick Search: Queries containing equal sign (=) failed

This commit is contained in:
2018-11-27 10:00:44 +01:00
parent 1c0476699a
commit 82071bf922
2 changed files with 9 additions and 4 deletions

View File

@@ -44,7 +44,13 @@ export class MultiSearch {
thenExecute() {
let data = JSON.stringify(this.getAllParams());
let rawAjax = $.getJSON(this.apiUrl, data);
let rawAjax = $.ajax({
url: this.apiUrl,
type: 'POST',
data: data,
dataType: 'json',
contentType: 'application/json; charset=UTF-8'
});
let prettyPromise = rawAjax.then(this.parseResult.bind(this));
prettyPromise['abort'] = rawAjax.abort.bind(rawAjax); // Hack to be able to abort the promise down the road
return prettyPromise;