X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fslices%2Fleases.js;h=9082601bcd161ab0170af61cfb9b6c726e7f7bac;hb=aca442e482fa8412c06b33a7e4d24b7b0a5c92db;hp=4e45e4dd503d7526e42bf444070872bd53b60ee9;hpb=61fd53afca9036e3a542b345039d8b027c9a2a61;p=plewww.git diff --git a/planetlab/slices/leases.js b/planetlab/slices/leases.js index 4e45e4d..9082601 100644 --- a/planetlab/slices/leases.js +++ b/planetlab/slices/leases.js @@ -285,7 +285,7 @@ function Scheduler () { var ajax=new Ajax.Request('/planetlab/common/actions.php', {method:'post', parameters:{'action':'manage-leases', - 'actions':actions.toJSON()}, + 'actions':Object.toJSON(actions)}, onSuccess: function(transport) { var response = transport.responseText || "no response text"; document.body.style.cursor = "default"; @@ -337,7 +337,7 @@ function Scheduler () { if ( ! scheduler.set_html (response)) alert ("Something wrong .. Could not store ajax result.."); else if ( ! scheduler.parse_html()) - alert ("Something wrong .. Could not parse ajax result.."); + alert ("Error: could not parse ajax result..\nIf your session has expired, you need to log back in"); else scheduler.draw_area("leases_area"); document.body.style.cursor = "default";