lp bug: https://launchpad.net/bugs/889731 fixed
bzr revid: kch@tinyerp.com-
20111122045639-2y6b5el3a2bjthis
schedule_bar: function(results) {
var self = this;
schedule_bar: function(results) {
var self = this;
var group_list, view_chart;
if (!this.group_field) {
view_chart = (this.orientation === 'horizontal') ? 'barH' : 'bar';
var group_list, view_chart;
if (!this.group_field) {
view_chart = (this.orientation === 'horizontal') ? 'barH' : 'bar';
.map(function (value, index) {
return {
group: self.ordinate + '_' +
.map(function (value, index) {
return {
group: self.ordinate + '_' +
- value.toLowerCase().replace(/\s/g, '_'),
+ value.toLowerCase().replace(/[\s\/]+/g,'_'),
text: value,
color: COLOR_PALETTE[index % COLOR_PALETTE.length]
};
text: value,
color: COLOR_PALETTE[index % COLOR_PALETTE.length]
};
_(records).each(function (record) {
var key = _.str.sprintf('%s_%s',
self.ordinate,
_(records).each(function (record) {
var key = _.str.sprintf('%s_%s',
self.ordinate,
- record[self.group_field].toLowerCase().replace(/\s/g, '_'));
+ record[self.group_field].toLowerCase().replace(/[\s\/]+/g,'_'));
r[key] = record[self.ordinate];
});
return r;
})
.value();
}
r[key] = record[self.ordinate];
});
return r;
})
.value();
}
var abscissa_description = {
title: "<b>" + this.fields[this.abscissa].string + "</b>",
template: function (obj) {
return obj[self.abscissa] || 'Undefined';
}
};
var abscissa_description = {
title: "<b>" + this.fields[this.abscissa].string + "</b>",
template: function (obj) {
return obj[self.abscissa] || 'Undefined';
}
};
var ordinate_description = {
lines: true,
title: "<b>" + this.fields[this.ordinate].string + "</b>"
var ordinate_description = {
lines: true,
title: "<b>" + this.fields[this.ordinate].string + "</b>"
x_axis = abscissa_description;
y_axis = ordinate_description;
}
x_axis = abscissa_description;
y_axis = ordinate_description;
}
var renderer = function () {
if (self.$element.is(':hidden')) {
self.renderer = setTimeout(renderer, 100);
var renderer = function () {
if (self.$element.is(':hidden')) {
self.renderer = setTimeout(renderer, 100);