NIHVIVO-1363 Create a separate controller to handle AJAX sparql queries. The calling sequence changes slightly.

This commit is contained in:
jeb228 2010-12-14 16:41:48 +00:00
parent f15022e264
commit d30c4bbf80
4 changed files with 13 additions and 6 deletions

View file

@ -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);
}
});
},