Merge lp:~unifield-team/unifield-web/jfb-uf-2027 into lp:unifield-web

Proposed by jftempo
Status: Merged
Merged at revision: 4712
Proposed branch: lp:~unifield-team/unifield-web/jfb-uf-2027
Merge into: lp:unifield-web
Diff against target: 15 lines (+3/-1)
1 file modified
addons/openerp/static/javascript/form_state.js (+3/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/jfb-uf-2027
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+166184@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/static/javascript/form_state.js'
2--- addons/openerp/static/javascript/form_state.js 2013-05-22 15:04:36 +0000
3+++ addons/openerp/static/javascript/form_state.js 2013-05-29 07:04:16 +0000
4@@ -223,8 +223,10 @@
5 if (typeof(n) == "number") { // {'invisible': [1]}
6 return form_onAttrChange(container, widget, attr, n, $this);
7 }
8+ var name = prefix + n[0];
9+ var field = openobject.dom.get(name);
10 if (row_is_editable) {
11- var $field = jQuery(this).bind('onAttrChange', partial(form_onAttrChange, container, widget, attr, attrs[attr], $this));
12+ var $field = jQuery(field).bind('onAttrChange', partial(form_onAttrChange, container, widget, attr, attrs[attr], $this));
13 $field.change(partial(form_onAttrChange, container, widget, attr, attrs[attr], $this));
14 }
15 return form_onAttrChange(container, widget, attr, attrs[attr], $this);

Subscribers

People subscribed via source and target branches

to all changes: