[CHG] insert the 'Add a row' link before the padding rows
bzr revid: xmo@openerp.com-20120806135248-onwslw7ge72tolwn
This commit is contained in:
parent
8cecaa14f3
commit
cd96727f50
|
@ -3520,8 +3520,14 @@ instance.web.form.One2ManyList = instance.web.ListView.List.extend({
|
|||
self.view.do_add_record();
|
||||
});
|
||||
});
|
||||
this.$current.append(
|
||||
$('<tr>').append($cell))
|
||||
|
||||
var $padding = this.$current.find('tr:not([data-id]):first');
|
||||
var $newrow = $('<tr>').append($cell);
|
||||
if ($padding.length) {
|
||||
$padding.before($newrow);
|
||||
} else {
|
||||
this.$current.append($newrow)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue