From 73f95dacda446521f594f33fe298fdd7d0ffaad2 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Thu, 1 Dec 2011 08:02:34 -0800 Subject: [PATCH] Enable install wizard --- ui/scripts/installWizard.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/ui/scripts/installWizard.js b/ui/scripts/installWizard.js index c126424e611..6705f28aaed 100644 --- a/ui/scripts/installWizard.js +++ b/ui/scripts/installWizard.js @@ -2,20 +2,16 @@ cloudStack.installWizard = { // Check if install wizard should be invoked check: function(args) { - args.response.success({ - doInstall: false + $.ajax({ + url: createURL('listZones'), + dataType: 'json', + async: true, + success: function(data) { + args.response.success({ + doInstall: !data.listzonesresponse.zone + }); + } }); - - // $.ajax({ - // url: createURL('listZones'), - // dataType: 'json', - // async: true, - // success: function(data) { - // args.response.success({ - // doInstall: !data.listzonesresponse.zone - // }); - // } - // }); }, changeUser: function(args) {