Commit 36a47de4 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Blobify the return value of Extend().

parent 7930fd15
......@@ -760,10 +760,11 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
sup.SpitOops("oops", message);
return;
}
$("#quickvm_expires").html(moment(json.value).format('lll'));
var expiration = json.value.expiration;
$("#quickvm_expires").html(moment(expiration).format('lll'));
// Reset the countdown clock.
StartCountdownClock.reset = json.value;
StartCountdownClock.reset = expiration;
}
//
......
......@@ -399,10 +399,10 @@ function Do_RequestExtension()
}
# Refresh.
$slice = GeniSlice::Lookup("sa", $instance->slice_uuid());
$new_expires = date("Y-m-d H:i:s T", strtotime($slice->expires()));
$blob = array("expiration" =>
date("Y-m-d H:i:s T", strtotime($slice->expires())));
$webtask->Delete();
SPITAJAX_RESPONSE($new_expires);
SPITAJAX_RESPONSE(blob);
bad:
delay:
sleep(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment