r25589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25588‎ | r25589 | r25590 >
Date:15:49, 6 September 2007
Author:proes
Status:old
Tags:
Comment:
Minor adjustment
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/suggest.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/suggest.js
@@ -64,11 +64,14 @@
6565 '&offset=' + encodeURI(suggestOffset) +
6666 '&dataset='+dataSet;
6767
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);
7376
7477 http.open('GET', URL, true);
7578 http.onreadystatechange = function() {

Status & tagging log