mirror of https://github.com/apache/cloudstack.git
List view, error handling
Fix list view error handling, where addRow == 'true' but no createForm is present -- properly remove row
This commit is contained in:
parent
6b60341ea4
commit
46ebc1e032
|
|
@ -186,8 +186,8 @@
|
|||
);
|
||||
},
|
||||
error: function(message) {
|
||||
if ($.isPlainObject(args.action.createForm)
|
||||
&& args.action.addRow != 'false') {
|
||||
if (($.isPlainObject(args.action.createForm) && args.action.addRow != 'false') ||
|
||||
(!args.action.createForm && args.action.addRow == 'true')) {
|
||||
$instanceRow.remove();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue