NIHVIVO-3510 fixed bugs introduced in updating sparql query builder to generate prefixes
This commit is contained in:
parent
abf72d6924
commit
5966c5e945
2 changed files with 18 additions and 14 deletions
|
@ -22,10 +22,10 @@
|
|||
var myAjax = new Ajax.Request( url, {method: "get", parameters: "", onComplete: function(originalRequest){
|
||||
var response = originalRequest.responseXML;
|
||||
var options = response.getElementsByTagName("option");
|
||||
if (options == null || options.length == 0){
|
||||
alert("Error: Cannot get all the classes.");
|
||||
return;
|
||||
}
|
||||
// if (options == null || options.length == 0){
|
||||
// alert("Error: Cannot get all the classes.");
|
||||
// return;
|
||||
// }
|
||||
for(i=0; i<options.length; i++){
|
||||
base[base.length] = new Option(options[i].childNodes[0].firstChild.data, options[i].childNodes[1].firstChild.data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue