X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fuwobo-panel%2Fcontrol.js;h=e9376ec97c8b52cb2aa7cbf5155387d1c4b2719c;hb=7cb90c67bc6f8113188a91ecc29f6db20db5aeb8;hp=d94b9b2ce0283a914c3cb515cdf14c0a28b87c28;hpb=9d52e9315d9f6e401f21f1ec9e772197ea89cc55;p=helm.git diff --git a/helm/uwobo-panel/control.js b/helm/uwobo-panel/control.js index d94b9b2ce..e9376ec97 100644 --- a/helm/uwobo-panel/control.js +++ b/helm/uwobo-panel/control.js @@ -13,6 +13,11 @@ function getParam(name, def) return value; } +function getInitialPort() +{ + return "68080"; +} + function getInitialProcessorURL() { return getParam("processorURL", "http://phd.cs.unibo.it:8080/helm/servlet/uwobo/"); @@ -113,7 +118,7 @@ function removeStylesheet() function removeAllStylesheets() { - top.result.location.replace(getUwoboURL() + "remove"); + top.result.location.replace(getUwoboURL() + "remove?keys="); } function reloadStylesheet() @@ -121,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]) { @@ -142,7 +152,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); } }