NIHVIVO-1363 Create a separate controller to handle AJAX sparql queries. The calling sequence changes slightly.
This commit is contained in:
parent
f15022e264
commit
d30c4bbf80
4 changed files with 13 additions and 6 deletions
|
@ -282,14 +282,12 @@ var customForm = {
|
|||
this.acFilter = [];
|
||||
$.ajax({
|
||||
url: customForm.sparqlQueryUrl,
|
||||
dataType: "json",
|
||||
data: {
|
||||
resultFormat: 'RS_JSON',
|
||||
query: customForm.sparqlForAcFilter
|
||||
},
|
||||
success: function(data, status, xhr) {
|
||||
// Not sure why, but we need an explicit json parse here. jQuery
|
||||
// should parse the response text and return a json object.
|
||||
customForm.setAcFilter($.parseJSON(data));
|
||||
customForm.setAcFilter(data);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue