2011-04-15 06:42:41 +00:00
|
|
|
/*---------------------------------------------------------
|
2011-09-05 12:28:15 +00:00
|
|
|
* OpenERP web_graph
|
2011-04-15 06:42:41 +00:00
|
|
|
*---------------------------------------------------------*/
|
2013-11-08 15:41:14 +00:00
|
|
|
|
2013-11-12 08:38:27 +00:00
|
|
|
/* jshint undef: false */
|
|
|
|
|
2011-04-15 06:42:41 +00:00
|
|
|
|
2012-04-17 12:48:30 +00:00
|
|
|
openerp.web_graph = function (instance) {
|
2013-11-13 10:50:59 +00:00
|
|
|
'use strict';
|
2011-06-17 13:25:50 +00:00
|
|
|
|
2012-06-07 14:17:12 +00:00
|
|
|
var _lt = instance.web._lt;
|
2013-01-25 07:02:40 +00:00
|
|
|
var _t = instance.web._t;
|
2013-11-12 13:53:44 +00:00
|
|
|
var QWeb = instance.web.qweb;
|
2012-05-07 08:19:08 +00:00
|
|
|
|
2012-04-17 12:48:30 +00:00
|
|
|
instance.web.views.add('graph', 'instance.web_graph.GraphView');
|
2013-11-08 13:08:06 +00:00
|
|
|
|
2013-11-08 15:20:48 +00:00
|
|
|
/**
|
2013-11-18 09:07:15 +00:00
|
|
|
* GraphView view. It mostly contains a widget (PivotTable), some data, and
|
|
|
|
* calls to charts function.
|
2013-11-08 15:20:48 +00:00
|
|
|
*/
|
2012-04-17 12:48:30 +00:00
|
|
|
instance.web_graph.GraphView = instance.web.View.extend({
|
2013-11-08 13:08:06 +00:00
|
|
|
template: 'GraphView',
|
2011-12-16 13:00:00 +00:00
|
|
|
display_name: _lt('Graph'),
|
2013-11-08 13:08:06 +00:00
|
|
|
view_type: 'graph',
|
2013-11-12 11:31:34 +00:00
|
|
|
|
2013-11-08 13:08:06 +00:00
|
|
|
events: {
|
|
|
|
'click .graph_mode_selection li' : function (event) {
|
|
|
|
event.preventDefault();
|
2013-11-22 16:04:49 +00:00
|
|
|
var mode = event.target.attributes['data-mode'].nodeValue;
|
2013-11-27 11:05:38 +00:00
|
|
|
this.mode = mode;
|
|
|
|
this.display_data();
|
2013-11-22 13:59:27 +00:00
|
|
|
},
|
|
|
|
|
2013-11-27 09:10:53 +00:00
|
|
|
'click .graph_expand_selection li' : function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
switch (event.target.attributes['data-choice'].nodeValue) {
|
2013-11-27 09:20:52 +00:00
|
|
|
case 'fold_columns':
|
2013-11-27 09:10:53 +00:00
|
|
|
this.pivot_table.fold_cols();
|
2013-11-27 11:25:13 +00:00
|
|
|
this.display_data();
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
case 'fold_rows':
|
|
|
|
this.pivot_table.fold_rows();
|
2013-11-27 11:25:13 +00:00
|
|
|
this.display_data();
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
case 'fold_all':
|
|
|
|
this.pivot_table.fold_all();
|
2013-11-27 11:25:13 +00:00
|
|
|
this.display_data();
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
case 'expand_all':
|
2013-11-27 11:25:13 +00:00
|
|
|
this.pivot_table.expand_all().then(this.proxy('display_data'));
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
'click .graph_options_selection li' : function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
switch (event.target.attributes['data-choice'].nodeValue) {
|
2013-11-27 09:20:52 +00:00
|
|
|
case 'swap_axis':
|
2013-11-27 09:10:53 +00:00
|
|
|
this.pivot_table.swap_axis();
|
2013-11-27 11:25:13 +00:00
|
|
|
this.display_data();
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
case 'update_values':
|
2013-11-27 11:25:13 +00:00
|
|
|
this.pivot_table.update_values().then(this.proxy('display_data'));
|
2013-11-27 09:10:53 +00:00
|
|
|
break;
|
|
|
|
case 'export_data':
|
|
|
|
// Export code... To do...
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2013-11-22 13:59:27 +00:00
|
|
|
'click .web_graph_click' : function (event) {
|
|
|
|
event.preventDefault();
|
2013-11-27 13:04:06 +00:00
|
|
|
event.stopPropagation();
|
2013-11-24 21:48:09 +00:00
|
|
|
var id = event.target.attributes['data-id'].nodeValue;
|
|
|
|
this.handle_header_event({id:id, event:event});
|
2013-11-22 13:59:27 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
'click a.field-selection' : function (event) {
|
2013-11-24 21:48:09 +00:00
|
|
|
var id = event.target.attributes['data-id'].nodeValue,
|
2013-11-22 13:59:27 +00:00
|
|
|
field_id = event.target.attributes['data-field-id'].nodeValue;
|
|
|
|
event.preventDefault();
|
2013-11-24 21:48:09 +00:00
|
|
|
this.pivot_table.expand(id, field_id)
|
2013-11-27 11:25:13 +00:00
|
|
|
.then(this.proxy('display_data'));
|
2013-11-08 13:08:06 +00:00
|
|
|
},
|
|
|
|
},
|
2011-04-15 06:42:41 +00:00
|
|
|
|
2013-11-27 13:04:06 +00:00
|
|
|
init: function(parent, dataset, view_id, options) {
|
|
|
|
this._super(parent);
|
|
|
|
this.dataset = dataset;
|
|
|
|
this.set_default_options(options);
|
|
|
|
this.dropdown = null;
|
|
|
|
this.pivot_table = null;
|
|
|
|
this.heat_map_mode = false;
|
|
|
|
this.mode = 'pivot';
|
|
|
|
},
|
|
|
|
|
2013-11-08 13:08:06 +00:00
|
|
|
view_loading: function (fields_view_get) {
|
2013-11-22 07:43:27 +00:00
|
|
|
var self = this,
|
|
|
|
model = new instance.web.Model(fields_view_get.model, {group_by_no_leaf: true}),
|
|
|
|
domain = [],
|
|
|
|
measure = null,
|
|
|
|
fields,
|
|
|
|
important_fields = [],
|
|
|
|
row_groupby = [];
|
|
|
|
|
2013-11-08 15:20:48 +00:00
|
|
|
|
|
|
|
// get the default groupbys and measure defined in the field view
|
|
|
|
_.each(fields_view_get.arch.children, function (field) {
|
|
|
|
if ('name' in field.attrs) {
|
|
|
|
if ('operator' in field.attrs) {
|
2013-11-18 12:53:20 +00:00
|
|
|
measure = field.attrs.name;
|
2013-11-08 15:20:48 +00:00
|
|
|
} else {
|
2013-11-18 12:53:20 +00:00
|
|
|
row_groupby.push(field.attrs.name);
|
2013-11-08 15:20:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-11-13 15:47:31 +00:00
|
|
|
// get the most important fields (of the model) by looking at the
|
|
|
|
// groupby filters defined in the search view
|
|
|
|
var load_view = instance.web.fields_view_get({
|
|
|
|
model: model,
|
|
|
|
view_type: 'search',
|
2013-11-12 08:38:27 +00:00
|
|
|
});
|
2013-11-08 15:20:48 +00:00
|
|
|
|
2013-11-13 15:47:31 +00:00
|
|
|
var important_fields_def = $.when(load_view).then(function (search_view) {
|
|
|
|
var groups = _.select(search_view.arch.children, function (c) {
|
|
|
|
return (c.tag == 'group') && (c.attrs.string != 'Display');
|
|
|
|
});
|
|
|
|
_.each(groups, function(g) {
|
|
|
|
_.each(g.children, function (g) {
|
|
|
|
if (g.attrs.context) {
|
|
|
|
var field_id = py.eval(g.attrs.context).group_by;
|
2013-11-18 12:53:20 +00:00
|
|
|
important_fields.push(field_id);
|
2013-11-13 15:47:31 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2013-11-14 10:34:46 +00:00
|
|
|
});
|
2013-11-13 15:47:31 +00:00
|
|
|
|
|
|
|
// get the fields descriptions from the model
|
|
|
|
var field_descr_def = model.call('fields_get', [])
|
2013-11-18 12:53:20 +00:00
|
|
|
.then(function (fs) { fields = fs; });
|
2013-11-13 15:47:31 +00:00
|
|
|
|
|
|
|
return $.when(important_fields_def, field_descr_def)
|
|
|
|
.then(function () {
|
2013-11-15 16:32:09 +00:00
|
|
|
self.data = {
|
|
|
|
model: model,
|
2013-11-18 12:53:20 +00:00
|
|
|
domain: domain,
|
|
|
|
fields: fields,
|
|
|
|
important_fields: important_fields,
|
|
|
|
measure: measure,
|
|
|
|
measure_label: fields[measure].string,
|
2013-11-15 16:32:09 +00:00
|
|
|
col_groupby: [],
|
2013-11-18 12:53:20 +00:00
|
|
|
row_groupby: row_groupby,
|
2013-11-15 16:32:09 +00:00
|
|
|
groups: [],
|
|
|
|
total: null,
|
|
|
|
};
|
2013-11-13 15:47:31 +00:00
|
|
|
});
|
2013-11-12 16:10:34 +00:00
|
|
|
},
|
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
start: function () {
|
|
|
|
this.table = $('<table></table>');
|
2013-11-27 11:05:38 +00:00
|
|
|
this.$('.graph_main_content').append(this.table);
|
2013-11-27 13:04:06 +00:00
|
|
|
instance.web.bus.on('click', this, function (ev) {
|
|
|
|
if (this.dropdown) {
|
|
|
|
this.dropdown.remove();
|
|
|
|
this.dropdown = null;
|
|
|
|
}
|
|
|
|
});
|
2013-11-22 07:43:27 +00:00
|
|
|
return this.load_view();
|
2013-11-13 09:18:07 +00:00
|
|
|
},
|
|
|
|
|
2013-11-08 15:20:48 +00:00
|
|
|
do_search: function (domain, context, group_by) {
|
2013-11-22 07:43:27 +00:00
|
|
|
var self = this;
|
2013-11-15 16:32:09 +00:00
|
|
|
this.data.domain = new instance.web.CompoundDomain(domain);
|
2013-11-18 12:53:20 +00:00
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
if (!this.pivot_table) {
|
2013-11-27 09:47:18 +00:00
|
|
|
self.pivot_table = new openerp.web_graph.PivotTable(self.data);
|
2013-11-27 11:25:13 +00:00
|
|
|
self.pivot_table.start().then(self.proxy('display_data'));
|
2013-11-18 12:53:20 +00:00
|
|
|
} else {
|
2013-11-26 15:57:06 +00:00
|
|
|
this.pivot_table.domain = domain;
|
2013-11-26 15:19:06 +00:00
|
|
|
this.pivot_table.update_values().done(function () {
|
2013-11-27 11:25:13 +00:00
|
|
|
self.display_data();
|
2013-11-22 07:43:27 +00:00
|
|
|
});
|
2013-11-18 12:53:20 +00:00
|
|
|
}
|
2011-05-06 12:41:08 +00:00
|
|
|
},
|
2012-05-07 09:40:59 +00:00
|
|
|
|
2013-11-08 11:32:10 +00:00
|
|
|
do_show: function () {
|
2012-01-03 16:06:50 +00:00
|
|
|
this.do_push_state({});
|
|
|
|
return this._super();
|
2012-05-07 08:19:08 +00:00
|
|
|
},
|
2013-11-08 15:20:48 +00:00
|
|
|
|
2013-11-27 11:05:38 +00:00
|
|
|
display_data: function () {
|
|
|
|
this.$('.graph_main_content svg').remove();
|
|
|
|
this.table.empty();
|
|
|
|
|
2013-11-27 14:07:01 +00:00
|
|
|
if (this.pivot_table.no_data) {
|
|
|
|
var msg = 'No data available. Try to remove any filter or add some data.';
|
|
|
|
this.table.append($('<tr><td>' + msg + '</td></tr>'));
|
2013-11-22 16:04:49 +00:00
|
|
|
} else {
|
2013-11-27 14:07:01 +00:00
|
|
|
var table_modes = ['pivot', 'heatmap', 'row_heatmap', 'col_heatmap'];
|
|
|
|
if (_.contains(table_modes, this.mode)) {
|
|
|
|
this.draw_table();
|
|
|
|
} else {
|
|
|
|
this.$('.graph_main_content').append($('<div><svg></svg></div>'));
|
|
|
|
var svg = this.$('.graph_main_content svg')[0];
|
|
|
|
openerp.web_graph.draw_chart(this.mode, this.pivot_table, svg);
|
|
|
|
}
|
2013-11-22 16:04:49 +00:00
|
|
|
}
|
|
|
|
},
|
2013-11-22 13:59:27 +00:00
|
|
|
|
|
|
|
handle_header_event: function (options) {
|
|
|
|
var pivot = this.pivot_table,
|
2013-11-24 21:48:09 +00:00
|
|
|
id = options.id,
|
2013-11-24 20:58:55 +00:00
|
|
|
header = pivot.get_header(id);
|
2013-11-22 13:59:27 +00:00
|
|
|
|
|
|
|
if (header.is_expanded) {
|
2013-11-24 15:00:34 +00:00
|
|
|
pivot.fold(header);
|
2013-11-27 11:25:13 +00:00
|
|
|
this.display_data();
|
2013-11-22 13:59:27 +00:00
|
|
|
} else {
|
2013-11-24 20:58:55 +00:00
|
|
|
if (header.path.length < header.root.groupby.length) {
|
|
|
|
var field = header.root.groupby[header.path.length];
|
2013-11-27 11:25:13 +00:00
|
|
|
pivot.expand(id, field).then(this.proxy('display_data'));
|
2013-11-22 13:59:27 +00:00
|
|
|
} else {
|
2013-11-27 09:20:52 +00:00
|
|
|
this.display_dropdown({id:header.id,
|
|
|
|
target: $(options.event.target),
|
|
|
|
x: options.event.pageX,
|
2013-11-24 21:48:09 +00:00
|
|
|
y: options.event.pageY});
|
2013-11-22 13:59:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
display_dropdown: function (options) {
|
|
|
|
var self = this,
|
|
|
|
pivot = this.pivot_table,
|
2013-11-23 11:42:01 +00:00
|
|
|
already_grouped = pivot.rows.groupby.concat(pivot.cols.groupby),
|
2013-11-22 13:59:27 +00:00
|
|
|
possible_groups = _.difference(self.data.important_fields, already_grouped),
|
|
|
|
dropdown_options = {
|
2013-11-24 21:48:09 +00:00
|
|
|
header_id: options.id,
|
2013-11-22 13:59:27 +00:00
|
|
|
fields: _.map(possible_groups, function (field) {
|
|
|
|
return {id: field, value: self.data.fields[field].string};
|
|
|
|
})};
|
|
|
|
|
|
|
|
this.dropdown = $(QWeb.render('field_selection', dropdown_options));
|
|
|
|
options.target.after(this.dropdown);
|
|
|
|
this.dropdown.css({position:'absolute',
|
|
|
|
left:options.x,
|
|
|
|
top:options.y});
|
2013-11-27 13:04:06 +00:00
|
|
|
this.$('.field-selection').next('.dropdown-menu').toggle();
|
2013-11-22 13:59:27 +00:00
|
|
|
},
|
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
draw_table: function () {
|
|
|
|
this.draw_top_headers();
|
2013-11-23 11:42:01 +00:00
|
|
|
_.each(this.pivot_table.rows.headers, this.proxy('draw_row'));
|
2013-11-14 13:17:47 +00:00
|
|
|
},
|
|
|
|
|
2013-11-22 09:43:22 +00:00
|
|
|
make_border_cell: function (colspan, rowspan) {
|
|
|
|
return $('<td></td>').addClass('graph_border')
|
|
|
|
.attr('colspan', colspan)
|
|
|
|
.attr('rowspan', rowspan);
|
|
|
|
},
|
2013-11-19 14:52:33 +00:00
|
|
|
|
2013-11-22 09:43:22 +00:00
|
|
|
make_header_title: function (header) {
|
|
|
|
return $('<span> </span>')
|
|
|
|
.addClass('web_graph_click')
|
|
|
|
.attr('href', '#')
|
|
|
|
.addClass((header.is_expanded) ? 'icon-minus-sign' : 'icon-plus-sign')
|
2013-11-26 15:19:06 +00:00
|
|
|
.append((header.title !== undefined) ? header.title : 'Undefined');
|
2013-11-22 09:43:22 +00:00
|
|
|
},
|
2013-11-20 11:08:21 +00:00
|
|
|
|
2013-11-22 09:43:22 +00:00
|
|
|
draw_top_headers: function () {
|
|
|
|
var self = this,
|
|
|
|
pivot = this.pivot_table,
|
2013-11-23 11:42:01 +00:00
|
|
|
height = _.max(_.map(pivot.cols.headers, function(g) {return g.path.length;})),
|
2013-11-22 09:43:22 +00:00
|
|
|
header_cells = [[this.make_border_cell(1, height)]];
|
|
|
|
|
2013-11-22 13:59:27 +00:00
|
|
|
function set_dim (cols) {
|
|
|
|
_.each(cols.children, set_dim);
|
|
|
|
if (cols.children.length === 0) {
|
|
|
|
cols.height = height - cols.path.length + 1;
|
|
|
|
cols.width = 1;
|
|
|
|
} else {
|
|
|
|
cols.height = 1;
|
|
|
|
cols.width = _.reduce(cols.children, function (sum,c) { return sum + c.width;}, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-22 09:43:22 +00:00
|
|
|
function make_col_header (col) {
|
|
|
|
var cell = self.make_border_cell(col.width, col.height);
|
2013-11-24 21:48:09 +00:00
|
|
|
return cell.append(self.make_header_title(col).attr('data-id', col.id));
|
2013-11-14 15:33:48 +00:00
|
|
|
}
|
2013-11-14 13:17:47 +00:00
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
function make_cells (queue, level) {
|
2013-11-22 15:10:25 +00:00
|
|
|
var col = queue[0];
|
|
|
|
queue = _.rest(queue).concat(col.children);
|
2013-11-22 09:43:22 +00:00
|
|
|
if (col.path.length == level) {
|
|
|
|
_.last(header_cells).push(make_col_header(col));
|
2013-11-21 09:07:19 +00:00
|
|
|
} else {
|
2013-11-22 09:43:22 +00:00
|
|
|
level +=1;
|
|
|
|
header_cells.push([make_col_header(col)]);
|
2013-11-21 09:07:19 +00:00
|
|
|
}
|
2013-11-22 07:43:27 +00:00
|
|
|
if (queue.length !== 0) {
|
|
|
|
make_cells(queue, level);
|
2013-11-21 09:07:19 +00:00
|
|
|
}
|
2013-11-20 13:07:48 +00:00
|
|
|
}
|
|
|
|
|
2013-11-23 11:42:01 +00:00
|
|
|
set_dim(pivot.cols.main); // add width and height info to columns headers
|
|
|
|
if (pivot.cols.main.children.length === 0) {
|
|
|
|
make_cells(pivot.cols.headers, 0);
|
2013-11-22 09:43:22 +00:00
|
|
|
} else {
|
2013-11-23 11:42:01 +00:00
|
|
|
make_cells(pivot.cols.main.children, 1);
|
2013-11-25 09:15:05 +00:00
|
|
|
header_cells[0].push(self.make_border_cell(1, height).append('Total').css('font-weight', 'bold'));
|
2013-11-22 09:43:22 +00:00
|
|
|
}
|
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
_.each(header_cells, function (cells) {
|
2013-11-27 09:20:52 +00:00
|
|
|
self.table.append($('<tr></tr>').append(cells));
|
2013-11-18 15:26:20 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
draw_row: function (row) {
|
2013-11-24 14:52:40 +00:00
|
|
|
var self = this,
|
|
|
|
pivot = this.pivot_table,
|
2013-11-22 07:43:27 +00:00
|
|
|
html_row = $('<tr></tr>'),
|
2013-11-22 13:59:27 +00:00
|
|
|
row_header = this.make_border_cell(1,1)
|
2013-11-24 21:48:09 +00:00
|
|
|
.append(this.make_header_title(row).attr('data-id', row.id))
|
2013-11-22 07:43:27 +00:00
|
|
|
.addClass('graph_border');
|
|
|
|
|
|
|
|
for (var i in _.range(row.path.length)) {
|
|
|
|
row_header.prepend($('<span/>', {class:'web_graph_indent'}));
|
2013-11-14 13:17:47 +00:00
|
|
|
}
|
2013-11-14 10:34:46 +00:00
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
html_row.append(row_header);
|
2013-11-15 09:24:11 +00:00
|
|
|
|
2013-11-23 11:42:01 +00:00
|
|
|
_.each(pivot.cols.headers, function (col) {
|
2013-11-22 15:10:25 +00:00
|
|
|
if (col.children.length === 0) {
|
2013-11-24 14:52:40 +00:00
|
|
|
var value = pivot.get_value(row.id, col.id),
|
|
|
|
cell = $('<td></td>');
|
|
|
|
|
|
|
|
cell.append((value === undefined) ? '' : value);
|
2013-11-27 09:10:53 +00:00
|
|
|
if ((self.mode == 'heatmap') && (value !== undefined)) {
|
2013-11-24 20:10:49 +00:00
|
|
|
var color = Math.floor(50 + 205*(pivot.total - value)/pivot.total);
|
2013-11-27 09:20:52 +00:00
|
|
|
cell.css('background-color', 'rgb(255,' + color + ',' + color + ')');
|
2013-11-25 07:42:00 +00:00
|
|
|
}
|
|
|
|
if (row.is_expanded && (row.path.length <= 2)) {
|
|
|
|
var color = row.path.length * 5 + 240;
|
2013-11-27 09:20:52 +00:00
|
|
|
cell.css('background-color', 'rgb(' + [color, color, color].join() + ')');
|
2013-11-25 07:42:00 +00:00
|
|
|
}
|
2013-11-22 15:10:25 +00:00
|
|
|
html_row.append(cell);
|
|
|
|
}
|
2013-11-14 10:34:46 +00:00
|
|
|
});
|
2013-11-25 09:15:05 +00:00
|
|
|
var total = pivot.get_value(row.id, pivot.cols.main.id);
|
|
|
|
var cell = $('<td></td>')
|
|
|
|
.append(total)
|
|
|
|
.css('font-weight', 'bold');
|
2013-11-25 09:04:43 +00:00
|
|
|
if (row.is_expanded && (row.path.length <= 2)) {
|
|
|
|
var color = row.path.length * 5 + 240;
|
2013-11-27 09:20:52 +00:00
|
|
|
cell.css('background-color', 'rgb(' + [color, color, color].join() + ')');
|
2013-11-25 09:15:05 +00:00
|
|
|
} else if (self.heat_map_mode) {
|
|
|
|
var color = Math.floor(50 + 205*(pivot.total - total)/pivot.total);
|
2013-11-27 09:20:52 +00:00
|
|
|
cell.css('background-color', 'rgb(255,' + color + ',' + color + ')');
|
2013-11-25 09:04:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (pivot.cols.main.children.length > 0) {
|
|
|
|
html_row.append(cell);
|
|
|
|
}
|
|
|
|
|
2013-11-22 07:43:27 +00:00
|
|
|
this.table.append(html_row);
|
|
|
|
}
|
|
|
|
});
|
2013-11-14 10:34:46 +00:00
|
|
|
|
2011-04-15 06:42:41 +00:00
|
|
|
};
|