diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-12-06 17:23:01 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-12-06 17:23:01 +0100 |
| commit | 476d0f4f38e597cf7479d6245d4eab4955d7a0c6 (patch) | |
| tree | ebba78aad5dbe015ddbfb7f993e0323daacbd8dd /addons/web_graph/static/src | |
| parent | 5c04caf2ee2050bb0607f3ebf066e744b398d21f (diff) | |
[FIX] fixes a small bug where the columns would expand all headers when the user clears the rows groupby in the search view (addon web_graph)
bzr revid: ged@openerp.com-20131206162301-fbq5mgqhg65yqi96
Diffstat (limited to 'addons/web_graph/static/src')
| -rw-r--r-- | addons/web_graph/static/src/js/pivot.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_graph/static/src/js/pivot.js b/addons/web_graph/static/src/js/pivot.js index 10bbf6a7240..9b1901e3817 100644 --- a/addons/web_graph/static/src/js/pivot.js +++ b/addons/web_graph/static/src/js/pivot.js @@ -41,6 +41,9 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({ }, set_row_groupby: function (groupby) { + if ((!groupby.length) && (this.rows.main)) { + this.fold(this.rows.main); + } if (!_.isEqual(groupby, this.rows.groupby)) { this.rows.groupby = groupby; this.invalidate_data(); @@ -48,6 +51,9 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({ }, set_col_groupby: function (groupby) { + if ((!groupby.length) && (this.cols.main)) { + this.fold(this.cols.main); + } if (!_.isEqual(groupby, this.cols.groupby)) { this.cols.groupby = groupby; this.invalidate_data(); |
