diff --git a/docs/example-widget-math.html b/docs/example-widget-math.html index 622a644e..61baa826 100644 --- a/docs/example-widget-math.html +++ b/docs/example-widget-math.html @@ -312,8 +312,9 @@ math_ignore : [0,1] 'N/A' - This option contains the text added to a math cell when no matching elements are found (v2.24.0). + This option contains the text added to a math cell when no matching elements are found (v2.24.0; v2.24.7).
+

In v2.24.7, this option can now be set to an empty string.

To understand when this text is used, select a Region in the "Row & Column Sums" table below. The totals for hidden rows will display this text.

Use it as follows:

math_none : 'N/A',
@@ -329,9 +330,9 @@ math_complete : function($cell, wo, result, value, arry) {
 						
 						'#,##0.00'
 						
-							Set this option with an output formatting mask to use *
+							Set this option with an output formatting mask to use 
 							
- As of v2.16.2, you can set a mask for each math cell by adding a data-math-mask data-attribute (the math part of the data-attribute is obtained from the math_data setting). +

As of v2.16.2, you can set a mask for each math cell by adding a data-math-mask data-attribute (the math part of the data-attribute is obtained from the math_data setting).

<th data-math="all-sum" data-math-mask="##0.00">all-sum</th>

Javascript-number-formatter details

@@ -363,7 +364,7 @@ math_complete : function($cell, wo, result, value, arry) {
  • To force a single symbol as Separator, add a trailing dot to the end like this: $.tablesorter.formatMask( '#,###.', 1234567.890) which will then output 1,234,567.
  • Original plugin demo
  • - * The number formatter code was copied from javascript-number-formatter (MIT) - now forked on GitHub. + The number formatter code was copied from javascript-number-formatter (MIT) - now forked on GitHub.
    @@ -418,7 +419,7 @@ math_complete : function($cell, wo, result, value, arry){
  • So, all row calculations are made first, followed by "above" calculations then "col" (column) calculations.
  • The "all" type calculations are always performed last, and therefore the type is not included in this list.
  • Change this order if the order of calculations needs to be made column first, followed by rows.
  • -
  • For more details about the differences between "col" and "above" types, see the next section.
  • +
  • For more details about the differences between "col" and "above" types, see the "Attribute Settings" section.
  • diff --git a/js/widgets/widget-math.js b/js/widgets/widget-math.js index 8f5acc00..3b1fadbf 100644 --- a/js/widgets/widget-math.js +++ b/js/widgets/widget-math.js @@ -22,7 +22,7 @@ // name = function returning invalid results // errorIndex = math.error index with an explanation of the error console.log( name, math.error[ errorIndex ] ); - return c && c.widgetOptions.math_none || 'none'; // text for cell + return c && c.widgetOptions.math_none || ''; // text for cell }, events : ( 'tablesorter-initialized update updateAll updateRows addRows updateCell filterReset ' )