bug 12431: Remove instance row correctly when error occurs

This commit is contained in:
Brian Federle 2011-12-15 14:59:58 -08:00
parent be696bd283
commit 40e3960b20

View File

@ -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 });
}
}
};