diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-06-07 12:30:24 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-06-07 12:30:24 +0200 |
| commit | 8a7a64bcd1e8e96bb7b1604d2f74e3145315246e (patch) | |
| tree | 39668c5eb5473cf93cf7fe00450f83dfcf4cf6a2 /addons/base/static/src/js | |
| parent | 3d5af3fa7308b13209d5ad94dcc74d21df99c599 (diff) | |
[IMP] make events passed through from children (lists and groups) to self by ListView.Groups pluggable
bzr revid: xmo@openerp.com-20110607103024-6m5b1g52l6cfrfi6
Diffstat (limited to 'addons/base/static/src/js')
| -rw-r--r-- | addons/base/static/src/js/list.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/base/static/src/js/list.js b/addons/base/static/src/js/list.js index 550221847b2..41ff6e9ec14 100644 --- a/addons/base/static/src/js/list.js +++ b/addons/base/static/src/js/list.js @@ -730,6 +730,7 @@ openerp.base.ListView.List = Class.extend( /** @lends openerp.base.ListView.List // drag and drop }); openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Groups# */{ + passtrough_events: 'action deleted row_link', /** * Grouped display for the ListView. Handles basic DOM events and interacts * with the :js:class:`~openerp.base.DataGroup` bound to it. @@ -881,7 +882,7 @@ openerp.base.ListView.Groups = Class.extend( /** @lends openerp.base.ListView.Gr // can have selections spanning multiple links var selection = self.get_selection(); $this.trigger(e, [selection.ids, selection.records]); - }).bind('action deleted row_link', function (e) { + }).bind(this.passtrough_events, function (e) { // additional positional parameters are provided to trigger as an // Array, following the event type or event object, but are // provided to the .bind event handler as *args. |
