Skip to content

Commit

Permalink
Fix: Cells with the value of 0% were appearing as an empty string i…
Browse files Browse the repository at this point in the history
…n the Excel export

fb: 294
Forum 42939 and 42478
  • Loading branch information
Allan Jardine committed Jun 16, 2017
1 parent 72e2304 commit f1f94b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions js/buttons.flash.js
Expand Up @@ -723,13 +723,13 @@ function _createNode( doc, nodeName, opts ){
$(tempNode).attr( opts.attr );
}

if( opts.children ) {
if ( opts.children ) {
$.each( opts.children, function ( key, value ) {
tempNode.appendChild( value );
});
} );
}

if( opts.text ) {
if ( opts.text !== null && opts.text !== undefined ) {
tempNode.appendChild( doc.createTextNode( opts.text ) );
}
}
Expand Down
6 changes: 3 additions & 3 deletions js/buttons.html5.js
Expand Up @@ -498,13 +498,13 @@ function _createNode( doc, nodeName, opts ) {
$(tempNode).attr( opts.attr );
}

if( opts.children ) {
if ( opts.children ) {
$.each( opts.children, function ( key, value ) {
tempNode.appendChild( value );
});
} );
}

if( opts.text ) {
if ( opts.text !== null && opts.text !== undefined ) {
tempNode.appendChild( doc.createTextNode( opts.text ) );
}
}
Expand Down

0 comments on commit f1f94b1

Please sign in to comment.