error msg fix
This commit is contained in:
parent
77f2454e3c
commit
bbb1919404
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,6 @@ $(document).ready(function() {
|
|||
|
||||
$.post(url)
|
||||
.done(function(data) {
|
||||
console.log("success", data);
|
||||
if (data.status == true) {
|
||||
VMTerminateSuccess($container, data);
|
||||
} else {
|
||||
|
@ -62,7 +61,6 @@ $(document).ready(function() {
|
|||
}
|
||||
})
|
||||
.fail(function(data) {
|
||||
console.log(data)
|
||||
if (data.status==504) {
|
||||
VMTerminateStatus($container, url);
|
||||
} else {
|
||||
|
|
|
@ -925,6 +925,8 @@ class VirtualMachineView(LoginRequiredMixin, View):
|
|||
if vm is None:
|
||||
if self.request.is_ajax():
|
||||
storage = messages.get_messages(request)
|
||||
for m in storage:
|
||||
pass
|
||||
storage.used = True
|
||||
return HttpResponse(
|
||||
json.dumps({'redirect': self.get_success_url()}),
|
||||
|
|
Loading…
Reference in a new issue