From 04a2263e5ee1aa45ae4bc077dc37ad6b8caeb385 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 8 Dec 2011 15:38:34 -0800 Subject: [PATCH] Set AJAX defaults to always use JSON and async --- ui/scripts/cloudStack.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 897b7f10396..c4743afcb23 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -38,6 +38,8 @@ * Generic error handling */ $.ajaxSetup({ + async: true, + dataType: 'json', cache: false, error: function(data) { cloudStack.dialog.notice({ message: parseXMLHttpResponse(data) });