From: Claudio Sacerdoti Coen Date: Thu, 6 Jun 2002 11:02:01 +0000 (+0000) Subject: dummy=0 was inserted in the GET part of the HTTP request of the "Load All X-Git-Tag: V_0_3_0_debian_8~63 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=9d52e9315d9f6e401f21f1ec9e772197ea89cc55;p=helm.git dummy=0 was inserted in the GET part of the HTTP request of the "Load All Predefined" method. Fixed. --- diff --git a/helm/uwobo-panel/control.js b/helm/uwobo-panel/control.js index 0202f25c8..d94b9b2ce 100644 --- a/helm/uwobo-panel/control.js +++ b/helm/uwobo-panel/control.js @@ -125,11 +125,12 @@ function loadAllPredefined() { with (document.predefinedStylesheets.elements[0]) { var i; - var request = "dummy=0"; + var request = ""; for (i = 1; i < length; i++) request += - "&bind=" + getPredefinedStylesheetKey(i) + "," + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i)); + (request == "" ? "" : "&") + + "bind=" + getPredefinedStylesheetKey(i) + "," + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i)); top.result.location.replace(getUwoboURL() + "add?" + request); } }