[CHG] reintroduce a button at the end of the line, but use the cross as a cancel
bzr revid: xmo@openerp.com-20120625065812-6n8lxb0zimzvq1ee
This commit is contained in:
parent
ed0a94f0d7
commit
a227e1e43c
|
@ -1348,7 +1348,7 @@ label.error {
|
|||
}
|
||||
.openerp .oe_form_field_one2many .oe-listview .oe-edit-row-save,
|
||||
.openerp .oe_form_field_one2many_list .oe-listview .oe-edit-row-save {
|
||||
visibility: hidden;
|
||||
background-image: url("/web/static/src/img/iconset-b-remove.png");
|
||||
}
|
||||
|
||||
.openerp .oe_forms .oe-listview th.oe-sortable .ui-icon,
|
||||
|
|
|
@ -2743,6 +2743,11 @@ openerp.web.form.One2ManyList = openerp.web.ListView.List.extend({
|
|||
render_row_as_form: function () {
|
||||
var self = this;
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
self.edition_form.$element
|
||||
.undelegate('button.oe-edit-row-save', 'click')
|
||||
.delegate('button.oe-edit-row-save', 'click', function () {
|
||||
self.cancel_pending_edition();
|
||||
});
|
||||
$(self.edition_form).bind('form-blur', function () {
|
||||
if (self.__return_blur) {
|
||||
delete self.__return_blur;
|
||||
|
|
Loading…
Reference in New Issue