Skip to content

Commit

Permalink
removed the auto-reset of the headers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
duboisp committed Aug 2, 2012
1 parent bbb63a1 commit e1b52ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/js/pe-ap-min.js

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions src/js/workers/charts.js
Expand Up @@ -2569,7 +2569,8 @@ charts.graph2dAxis = {
cellRowHeaders = rowsIds[parser.rowPos];
}

$(this).attr('headers', cellColHeaders + (cellColHeaders != "" && cellRowHeaders != ""? ' ': '') + cellRowHeaders);
// Commented to because this will be moved in a new widget based on the table parser
// $(this).attr('headers', cellColHeaders + (cellColHeaders != "" && cellRowHeaders != ""? ' ': '') + cellRowHeaders);


// cellUnit will be use as global for the entire row group
Expand Down Expand Up @@ -3575,7 +3576,7 @@ charts.graph2dAxis = {
if(this.uid > lastId){

lastId = this.uid;

var colheadingCell = {
id: this.uid,
uniqueID: this.uid,
Expand All @@ -3589,6 +3590,19 @@ charts.graph2dAxis = {
param: parser.classToJson($(this.elem))
};

/*
// Get the Id is exist, otherwise create a new one if is an header
var cellHeaderId = "chartcheidcol" + (this.colpos -1); // Generate a new unique ID
if (!('id' in this.elem) || this.elem['id'] == "") {
$(this.elem).attr('id', cellHeaderId); // Add the new ID to the table
} else {
cellHeaderId = this.elem['id'];
}
colheadingCell.uniqueID = cellHeaderId;
*/

if(!parser.tBodySeries.ColHeading)parser.tBodySeries.ColHeading=[];

parser.tBodySeries.ColHeading.push(colheadingCell);
Expand Down

0 comments on commit e1b52ce

Please sign in to comment.