Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php |
— | — | @@ -448,9 +448,9 @@ |
449 | 449 | minLength: 2, |
450 | 450 | source: function(request, response) { |
451 | 451 | request.term=request.term.substr(request.term.lastIndexOf("\\n")+1); |
452 | | - url=wgScriptPath+'/api.php?action=opensearch&limit=10&namespace='+wgNamespaceIds['property']+'&format=jsonfm&search='; |
| 452 | + url=wgScriptPath+'/api.php?action=opensearch&limit=10&namespace='+wgNamespaceIds['property']+'&format=jsonfm'; |
453 | 453 | |
454 | | - jQuery.getJSON(url+request.term, function(data){ |
| 454 | + jQuery.getJSON(url, 'search='+request.term, function(data){ |
455 | 455 | //remove the namespace prefix 'Property:' from returned data and add prefix '?' |
456 | 456 | for(i=0;i<data[1].length;i++) data[1][i]="?"+data[1][i].substr(data[1][i].indexOf(':')+1); |
457 | 457 | response(jQuery.ui.autocomplete.filter(data[1], escapeQuestion(extractLast(request.term)))); |