X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fuwobo-panel%2Fcontrol.js;h=9858fe1400c6d8a53f8a8e27d2b089ca37b33154;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=4680ed3d866d47706583275d33869417459c7e83;hpb=76541a5b2971980e72b2e5e9a74bd648ffbc1e36;p=helm.git diff --git a/helm/uwobo-panel/control.js b/helm/uwobo-panel/control.js index 4680ed3d8..9858fe140 100644 --- a/helm/uwobo-panel/control.js +++ b/helm/uwobo-panel/control.js @@ -15,17 +15,17 @@ function getParam(name, def) function getInitialPort() { - return "68080"; + return "38080"; } function getInitialProcessorURL() { - return getParam("processorURL", "http://localhost:58080/"); + return getParam("processorURL", "http://mowgli.cs.unibo.it:58080/"); } function getInitialGetterURL() { - return getParam("getterURL", "http://localhost:58081/"); + return getParam("getterURL", "http://mowgli.cs.unibo.it:58081/"); } function getUwoboURL() @@ -52,7 +52,7 @@ function selectGetterURL(ss) if (ss.selectedIndex == 0) { document.getterURL.elements[0].value = ""; } else { - document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58081/"; + document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8081/"; } } @@ -91,6 +91,44 @@ function selectPredefinedStylesheet(ss) document.loadEscape.elements[0].checked = true; } +function getProfileParams() +{ + var password = document.getParamsProfilePassword.elements[0].value; + if (password != "") { password = "&password=" + password; }; + + top.result.location.replace(getUwoboURL() + "getparams?id=" + document.getParamsProfileID.elements[0].value + password); +} + +function setProfileParam() +{ + var password = document.setParamProfilePassword.elements[0].value; + if (password != "") { password = "&password=" + password; }; + + top.result.location.replace(getUwoboURL() + "setparam?id=" + document.setParamProfileID.elements[0].value + "&key=" + document.setParamProfileKey.elements[0].value + "&value=" + document.setParamProfileValue.elements[0].value + password); +} + +function createProfile() +{ + var id = document.createProfileID.elements[0].value; + if (id != "") { id = "&id=" + id; }; + + var password = document.createProfilePassword.elements[0].value; + if (password != "") { password = "&password=" + password; }; + + var clone = document.createProfileClone.elements[0].value; + if (clone != "") { clone = "&orig=" + clone; }; + + top.result.location.replace(getUwoboURL() + "createprofile?foo=x" + id + password + clone); +} + +function removeProfile() +{ + var password = document.removeProfilePassword.elements[0].value; + if (password != "") { password = "&password=" + password; }; + + top.result.location.replace(getUwoboURL() + "removeprofile?id=" + document.removeProfileID.elements[0].value + password); +} + function getStylesheetURL() { var s; @@ -118,7 +156,7 @@ function removeStylesheet() function removeAllStylesheets() { - top.result.location.replace(getUwoboURL() + "remove"); + top.result.location.replace(getUwoboURL() + "remove?keys="); } function reloadStylesheet() @@ -126,6 +164,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]) {