From fe04fab57e0bb83fea3af47b54e5326ffe94f8b0 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Fri, 4 Nov 2011 09:18:45 -0700 Subject: [PATCH] Pass context correctly from projects UI --- ui/scripts/ui-custom/projects.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js index 4c60f153dbe..268f4e0ed74 100644 --- a/ui/scripts/ui-custom/projects.js +++ b/ui/scripts/ui-custom/projects.js @@ -101,6 +101,7 @@ $form.prepend($loading); cloudStack.projects.add({ + context: cloudStack.context, data: cloudStack.serializeForm($form), response: { success: function(args) { @@ -259,12 +260,16 @@ return $userManagement; }); + + return false; }); var $laterButton = $('
').addClass('button later').html('Remind me later'); $laterButton.click(function() { $(':ui-dialog, .overlay').remove(); showDashboard(); + + return false; }); $buttons.appendTo($confirm).append($.merge( @@ -310,7 +315,9 @@ $(data).each(function() { $('
  • ') .data('json-obj', this) - .html(this.displayText) + .html( + this.displayText ? this.displayText : this.name + ) .appendTo($list.find('ul')); });