Setting tag plewww-4.3-67
[plewww.git] / planetlab / slices / leases.js
index 4e45e4d..9082601 100644 (file)
@@ -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";