]> matita.cs.unibo.it Git - helm.git/commitdiff
* syntax update for "remove all stylesheets" in control.js
authorLuca Padovani <luca.padovani@unito.it>
Wed, 16 Jul 2003 08:39:41 +0000 (08:39 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Wed, 16 Jul 2003 08:39:41 +0000 (08:39 +0000)
* reloadAll function created

helm/uwobo-panel/control.html
helm/uwobo-panel/control.js

index e9e80d83116bb6fb77e04046fffed702eb5b866a..3f68abb91bbef427758f4c9bc511a897c12031de 100644 (file)
@@ -370,7 +370,7 @@ care, and remember that the servlet can be shared among different users:
   </td>
   <td>
     <form>
-      <input type="button" value="Reload All" onClick="top.result.location.replace(getUwoboURL() + 'reload?keys=')"/>
+      <input type="button" value="Reload All" onClick="reloadAllStylesheets()"/>
     </form>
   </td>
 </tr>
index cd04429c0ddfc29c27212ee7efb4401e8e4c060c..e9376ec97c8b52cb2aa7cbf5155387d1c4b2719c 100644 (file)
@@ -118,7 +118,7 @@ function removeStylesheet()
 
 function removeAllStylesheets()
 {
-  top.result.location.replace(getUwoboURL() + "remove");
+  top.result.location.replace(getUwoboURL() + "remove?keys=");
 }
 
 function reloadStylesheet()
@@ -126,6 +126,11 @@ function reloadStylesheet()
   top.result.location.replace(getUwoboURL() + "reload?keys=" + document.stylesheetKey.elements[0].value);
 }
 
+function reloadAllStylesheets()
+{
+  top.result.location.replace(getUwoboURL() + 'reload?keys=');
+}
+
 function loadAllPredefined()
 {
   with (document.predefinedStylesheets.elements[0]) {