Index: trunk/extensions/Wikidata/OmegaWiki/suggest.js |
— | — | @@ -64,11 +64,14 @@ |
65 | 65 | '&offset=' + encodeURI(suggestOffset) + |
66 | 66 | '&dataset='+dataSet; |
67 | 67 | |
68 | | - if (suggestAttributesLevel != null && suggestDefinedMeaningId != null && suggestAnnotationAttributeId != null) |
69 | | - URL = URL + |
70 | | - '&attributesLevel=' + encodeURI(suggestAttributesLevel.value) + |
71 | | - '&definedMeaningId=' + encodeURI(suggestDefinedMeaningId.value) + |
72 | | - '&annotationAttributeId=' + encodeURI(suggestAnnotationAttributeId.value); |
| 68 | + if (suggestAttributesLevel != null) |
| 69 | + URL = URL + '&attributesLevel=' + encodeURI(suggestAttributesLevel.value); |
| 70 | + |
| 71 | + if (suggestDefinedMeaningId != null) |
| 72 | + URL = URL + '&definedMeaningId=' + encodeURI(suggestDefinedMeaningId.value); |
| 73 | + |
| 74 | + if (suggestAnnotationAttributeId != null) |
| 75 | + URL = URL + '&annotationAttributeId=' + encodeURI(suggestAnnotationAttributeId.value); |
73 | 76 | |
74 | 77 | http.open('GET', URL, true); |
75 | 78 | http.onreadystatechange = function() { |