diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-12-06 17:25:49 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-12-06 17:25:49 +0100 |
| commit | 65a0a97d67e02b5a659838bf54cd2accb892bc89 (patch) | |
| tree | 4c66c5e158f8fb7d1e64756a4caf367eb52a438c /addons/web_graph/static/src/js | |
| parent | 476d0f4f38e597cf7479d6245d4eab4955d7a0c6 (diff) | |
[IMP] usability fix, makes sure that the dropdown menu displayed when expanding a field in graph view has always the same choices (addon web_graph)
bzr revid: ged@openerp.com-20131206162549-08aw50z4zdelzxgc
Diffstat (limited to 'addons/web_graph/static/src/js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 8cf0ffd4877..7efc482f2dd 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -179,7 +179,6 @@ instance.web_graph.GraphView = instance.web.View.extend({ } }, - /****************************************************************************** * Event handling methods... ******************************************************************************/ @@ -318,11 +317,11 @@ instance.web_graph.GraphView = instance.web.View.extend({ display_dropdown: function (options) { var self = this, pivot = this.pivot_table, - already_grouped = pivot.rows.groupby.concat(pivot.cols.groupby), - possible_groups = _.difference(self.important_fields, already_grouped), + // already_grouped = pivot.rows.groupby.concat(pivot.cols.groupby), + // possible_groups = _.difference(self.important_fields, already_grouped), dropdown_options = { header_id: options.id, - fields: _.map(possible_groups, function (field) { + fields: _.map(self.important_fields, function (field) { return {id: field, value: self.fields[field].string}; })}; |
