[gen] Optimized PXs, that are almost ready. This is the last gen version where PTs are still working.

This commit is contained in:
Gaetan Delannay 2013-07-23 10:29:39 +02:00
parent efd918f175
commit d385b8514e
14 changed files with 207 additions and 210 deletions

View file

@ -41,9 +41,11 @@ function showLoginForm() {
loginFields.style.display = "inline";
}
function goto(url) { window.location = url }
function switchLanguage(selectWidget) {
var language = selectWidget.options[selectWidget.selectedIndex].value;
window.location = "/config/changeLanguage?language=" + language;
goto("/config/changeLanguage?language=" + language);
}
var isIe = (navigator.appName == "Microsoft Internet Explorer");
@ -543,10 +545,8 @@ function doConfirm() {
}
theForm.submit();
}
else if (actionType == 'url') {
// We must go to the URL defined in "action"
window.location = action;
}
// We must go to the URL defined in "action"
else if (actionType == 'url') { goto(action) }
else if (actionType == 'script') {
// We must execute Javascript code in "action"
eval(action);