summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2014-01-17 16:33:30 +0100
committerGery Debongnie <ged@openerp.com>2014-01-17 16:33:30 +0100
commit5aade330c20a1021eaa31bf932dab81dd45ec431 (patch)
tree16de9ec9ca30d1ee22179911e9a030e94f4704ff /addons/web_graph/static/src
parent86a18410d19e668f27afee18bc4eaa50917ec3fc (diff)
[FIX] fixes a typo (nodata => no_data), which prevents a crash in graph_view, addon web_graph)
bzr revid: ged@openerp.com-20140117153330-9vc6bzljmso9zu71
Diffstat (limited to 'addons/web_graph/static/src')
-rw-r--r--addons/web_graph/static/src/js/graph_widget.js3
-rw-r--r--addons/web_graph/static/src/js/pivot_table.js2
2 files changed, 1 insertions, 4 deletions
diff --git a/addons/web_graph/static/src/js/graph_widget.js b/addons/web_graph/static/src/js/graph_widget.js
index c89944d712a..d774b66727e 100644
--- a/addons/web_graph/static/src/js/graph_widget.js
+++ b/addons/web_graph/static/src/js/graph_widget.js
@@ -191,11 +191,8 @@ openerp.web_graph.Graph = openerp.web.Widget.extend(openerp.EventDispatcherMixin
var self = this,
measures_li = this.$('.graph_measure_selection a');
measures_li.removeClass('oe_selected');
- // measures_li.eq(0).addClass('oe_selected');
- console.log('measures_li', measures_li);
_.each(this.measure_list, function (measure, index) {
if (_.findWhere(self.pivot.measures, measure)) {
- console.log('measure', measure, index);
measures_li.eq(index).addClass('oe_selected');
}
});
diff --git a/addons/web_graph/static/src/js/pivot_table.js b/addons/web_graph/static/src/js/pivot_table.js
index 55719200098..476891644d7 100644
--- a/addons/web_graph/static/src/js/pivot_table.js
+++ b/addons/web_graph/static/src/js/pivot_table.js
@@ -65,7 +65,7 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend(openerp.EventDispatcherM
var index = this.measures.indexOf(current_measure);
this.measures = _.without(this.measures, current_measure);
if (this.measures.length === 0) {
- this.nodata = true;
+ this.no_data = true;
} else {
_.each(this.cells, function (cell) {
cell.values.splice(index, 1);