File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " LightPivotTable" ,
3
3
"author" : " ZitRo" ,
4
- "version" : " 1.8.10 " ,
4
+ "version" : " 1.8.11 " ,
5
5
"description" : " A lightweight pivot table for MDX2JSON source for InterSystems Cache" ,
6
6
"main" : " test/testServer.js" ,
7
7
"repository" : {
Original file line number Diff line number Diff line change @@ -538,21 +538,23 @@ DataController.prototype.resetRawData = function () {
538
538
for ( y = 0 ; y < rawData . length ; y ++ ) {
539
539
for ( x = 0 ; x < xEnd ; x ++ ) {
540
540
if ( ! rawData [ y ] [ x ] . isCaption ) {
541
- xEnd = x ; break ;
541
+ xEnd = x ;
542
+ break ;
542
543
}
543
544
if ( rawData [ y ] [ x ] . source && rawData [ y ] [ x ] . source [ "path" ] ) {
544
- for ( i in formatColumn ) {
545
+ var formatCR = data . info . topHeaderRowsNumber > y ? formatColumn : formatRow ;
546
+ for ( i in formatCR ) {
545
547
if ( rawData [ y ] [ x ] . source [ "path" ] . indexOf ( i ) >= 0 ) {
546
- var yy ;
547
- for ( yy = y ; yy < rawData . length ; yy ++ ) {
548
- if ( ! rawData [ yy ] [ x ] . isCaption ) {
549
- if ( formatColumn [ i ] . style ) rawData [ yy ] [ x ] . style = ( rawData [ yy ] [ x ] . style || "" )
550
- + formatColumn [ i ] . style || "" ;
548
+ // var yy;
549
+ // for (yy = y; yy < rawData.length; yy++) {
550
+ if ( ! rawData [ y ] [ x ] . isCaption ) {
551
+ if ( formatCR [ i ] . style ) rawData [ y ] [ x ] . style = ( rawData [ y ] [ x ] . style || "" )
552
+ + formatCR [ i ] . style || "" ;
551
553
} else {
552
- if ( formatColumn [ i ] . headStyle ) rawData [ yy ] [ x ] . style = ( rawData [ yy ] [ x ] . style || "" )
553
- + formatColumn [ i ] . headStyle || "" ;
554
+ if ( formatCR [ i ] . headStyle ) rawData [ y ] [ x ] . style = ( rawData [ y ] [ x ] . style || "" )
555
+ + formatCR [ i ] . headStyle || "" ;
554
556
}
555
- }
557
+ // }
556
558
break ;
557
559
}
558
560
}
You can’t perform that action at this time.
0 commit comments