summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-11-13 10:18:07 +0100
committerGery Debongnie <ged@openerp.com>2013-11-13 10:18:07 +0100
commit3c0445479bf5ceaab5bb2b6f201daa787c53bb82 (patch)
tree7cf0599fa6d79e656d082860a1e5b3faf1cacc93 /addons/web_graph/static/src/js/graph.js
parent8eeaca216d796eca53b361dfad364028ef09882e (diff)
[REF] move the method displaydata to a better place in addon web_graph
bzr revid: ged@openerp.com-20131113091807-cxmc4aaaswdmkfia
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index 44152e45372..7ade3843bde 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -38,17 +38,6 @@ instance.web_graph.GraphView = instance.web.View.extend({
},
},
- display_data : function () {
- if (this.mode === 'pivot') {
- this.chart_view.hide();
- this.pivot_table.show();
- } else {
- this.pivot_table.hide();
- this.chart_view.draw();
- this.chart_view.show();
- }
- },
-
view_loading: function (fields_view_get) {
var self = this;
this.model = new instance.web.Model(fields_view_get.model, {group_by_no_leaf: true});
@@ -79,6 +68,17 @@ instance.web_graph.GraphView = instance.web.View.extend({
return query_groups(this.model, view_fields, this.domain, this.groupbys);
},
+ display_data : function () {
+ if (this.mode === 'pivot') {
+ this.chart_view.hide();
+ this.pivot_table.show();
+ } else {
+ this.pivot_table.hide();
+ this.chart_view.draw();
+ this.chart_view.show();
+ }
+ },
+
do_search: function (domain, context, group_by) {
var self = this;
this.domain = new instance.web.CompoundDomain(domain);
@@ -138,7 +138,7 @@ var PivotTable = BasicDataView.extend({
this.$el.empty();
var self = this;
- var rows = '<tr><td class="graph_border">' +
+ var rows = '<tr><td class="graph_border"><i class="fa fa-sort-asc"></i> fa-sort-asc' +
this.fields[this.groupby[0]].string +
'</td><td class="graph_border">' +
this.measure_label +