Pass context correctly from projects UI

This commit is contained in:
Brian Federle 2011-11-04 09:18:45 -07:00
parent dc0f798b26
commit fe04fab57e
1 changed files with 8 additions and 1 deletions

View File

@ -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 = $('<div>').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() {
$('<li>')
.data('json-obj', this)
.html(this.displayText)
.html(
this.displayText ? this.displayText : this.name
)
.appendTo($list.find('ul'));
});