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:
bfederle 2011-12-22 15:35:55 -08:00
parent 6b60341ea4
commit 46ebc1e032
1 changed files with 2 additions and 2 deletions

View File

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