File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
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.2 " ,
4
+ "version" : " 1.8.3 " ,
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 @@ -1111,8 +1111,9 @@ PivotView.prototype.renderRawData = function (data) {
1111
1111
) ;
1112
1112
1113
1113
var formatContent = function ( value , element , format ) {
1114
- if ( typeof ( value ) === 'string' ) { // not number, format as string
1115
- element . parentNode . className += " formatLeft" ;
1114
+ if ( typeof ( value ) === 'string' ) {
1115
+ if ( ! ( value [ value . length - 1 ] === "%" && ! isNaN ( parseFloat ( value ) ) ) ) // string as %
1116
+ element . parentNode . className += " formatLeft" ;
1116
1117
element . innerHTML = ( value || "" ) . replace ( / ( h t t p s ? | f t p ) : \/ \/ [ ^ \s ] + / ig, function linkReplace ( p ) {
1117
1118
return "<a href='" + p
1118
1119
+ "' target='" + ( _ . controller . CONFIG [ "linksTarget" ] || "_blank" )
You can’t perform that action at this time.
0 commit comments