]> matita.cs.unibo.it Git - helm.git/commitdiff
The GET request of the method "RemoveAllPredefined" had a separator at the end.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 Jun 2002 11:04:39 +0000 (11:04 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 6 Jun 2002 11:04:39 +0000 (11:04 +0000)
Fixed.

helm/uwobo-panel/control.js

index d94b9b2ce0283a914c3cb515cdf14c0a28b87c28..6b13ab8a0fb9580ba58b94519bc0c22d11375bb4 100644 (file)
@@ -142,7 +142,7 @@ function removeAllPredefined()
     var request = "";
 
     for (i = 1; i < length; i++)
-      request += getPredefinedStylesheetKey(i) + ",";
+      request += getPredefinedStylesheetKey(i) + (i == length - 1 ? "" : ",");
     top.result.location.replace(getUwoboURL() + "remove?keys=" + request);
   }
 }