mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
1 parent
40b8e284a4
commit
f09e69bce9
1 file changed
+6
-3
@@ -267,7 +267,6 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _submitWizard(context) {
|
||||
|
||||
var name = WizardFields.retrieveInput($('#security_group_name', context));
|
||||
var description = WizardFields.retrieveInput($('#security_group_description', context));
|
||||
|
||||
@@ -291,12 +290,15 @@ define(function(require) {
|
||||
Sunstone.runAction("SecurityGroup.create",security_group_json);
|
||||
return false;
|
||||
} else if (this.action == "update") {
|
||||
delete security_group_json["NAME"];
|
||||
|
||||
var update_json = $.extend({},this.element.TEMPLATE,security_group_json)
|
||||
|
||||
delete update_json["NAME"];
|
||||
|
||||
Sunstone.runAction(
|
||||
"SecurityGroup.update",
|
||||
this.resourceId,
|
||||
TemplateUtils.templateToString(security_group_json));
|
||||
TemplateUtils.templateToString(update_json));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -320,6 +322,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _fill(context, element) {
|
||||
this.element = element;
|
||||
var that = this;
|
||||
|
||||
this.setHeader(element);
|
||||
|
||||
Reference in new issue
Block a user