mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 12431: Remove instance row correctly when error occurs
This commit is contained in:
parent
be696bd283
commit
40e3960b20
@ -233,11 +233,12 @@
|
||||
);
|
||||
},
|
||||
error: function(message) {
|
||||
if (args.action.createFrom && args.action.addRow != 'false')
|
||||
$instanceRow.remove();
|
||||
if ($.isPlainObject(args.action.createForm)
|
||||
&& args.action.addRow != 'false') {
|
||||
$instanceRow.remove();
|
||||
}
|
||||
|
||||
if (message)
|
||||
cloudStack.dialog.notice({ message: message });
|
||||
if (message) cloudStack.dialog.notice({ message: message });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user