@@ -624,14 +624,15 @@ PivotView.prototype.removeMessage = function () {
624
624
} ;
625
625
626
626
/**
627
- * @param {* } value1
627
+ * @param {* } value
628
628
* @param {string } operator
629
629
* @param {* } value2 - fixed value
630
630
* @private
631
631
* @return {boolean }
632
632
*/
633
- PivotView . prototype . _matchCondition = function ( value1 , operator , value2 ) {
633
+ PivotView . prototype . _matchCondition = function ( value , operator , value2 ) {
634
634
635
+ var value1 = parseFloat ( value ) ;
635
636
switch ( operator ) {
636
637
case "=" : return value1 == value2 ;
637
638
case "<>" : return value1 != value2 ;
@@ -1099,7 +1100,7 @@ PivotView.prototype.renderRawData = function (data) {
1099
1100
1100
1101
var formatContent = function ( value , element , format ) {
1101
1102
if ( typeof ( value ) === 'string' ) { // not number, format as string
1102
- element . className += " formatLeft" ;
1103
+ element . parentNode . className += " formatLeft" ;
1103
1104
element . innerHTML = ( value || "" ) . replace ( / ( h t t p s ? | f t p ) : \/ \/ [ ^ \s ] + / ig, function linkReplace ( p ) {
1104
1105
return "<a href='" + p
1105
1106
+ "' target='" + ( _ . controller . CONFIG [ "linksTarget" ] || "_blank" )
@@ -1113,13 +1114,13 @@ PivotView.prototype.renderRawData = function (data) {
1113
1114
element . textContent = d . getHours ( ) + d . getMinutes ( ) + d . getSeconds ( ) === 0
1114
1115
? d . toLocaleDateString ( ) : d . toLocaleString ( ) ;
1115
1116
} else if ( format ) { // set format
1116
- element . textContent = value ? _ . numeral ( value ) . format ( format ) : "" ;
1117
+ element . textContent = value ? _ . numeral ( value ) . format ( format ) : value ;
1117
1118
} else if ( value ) {
1118
1119
element . textContent = _ . numeral ( value ) . format (
1119
1120
value % 1 === 0 ? "#,###" : "#,###.##"
1120
1121
) ;
1121
1122
} else {
1122
- element . textContent = value || "" ;
1123
+ element . textContent = value ;
1123
1124
}
1124
1125
} else {
1125
1126
element . textContent = value ;
0 commit comments