]> matita.cs.unibo.it Git - helm.git/commitdiff
dummy=0 was inserted in the GET part of the HTTP request of the "Load All
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 Jun 2002 11:02:01 +0000 (11:02 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 Jun 2002 11:02:01 +0000 (11:02 +0000)
Predefined" method. Fixed.

helm/uwobo-panel/control.js

index 0202f25c81e5be4a1344b05e7cc7aa4974cf4533..d94b9b2ce0283a914c3cb515cdf14c0a28b87c28 100644 (file)
@@ -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);
   }
 }