[FIX] fixes a typo (nodata => no_data), which prevents a crash in graph_view, addon web_graph)
bzr revid: ged@openerp.com-20140117153330-9vc6bzljmso9zu71
This commit is contained in:
parent
86a18410d1
commit
5aade330c2
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue