Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
implement "getType"
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 2, 2017
1 parent a10075a commit 651ea87
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/stable/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@
break;
}
}
return new Array(total).concat($(val).text());
return new Array(total).concat({
v: formatValue(val.textContent),
t: getType(val.className)
});
}
return formatValue(val.textContent);
return {
v: formatValue(val.textContent),
t: getType(val.className)
};
});
}),
dataObject = TableExport.prototype.escapeHtml(
Expand Down Expand Up @@ -150,9 +156,15 @@
break;
}
}
return new Array(total).concat($(val).text());
return new Array(total).concat({
v: formatValue(val.textContent),
t: getType(val.className)
});
}
return formatValue(val.textContent);
return {
v: formatValue(val.textContent),
t: getType(val.className)
};
});
}),
dataObject = TableExport.prototype.escapeHtml(
Expand Down Expand Up @@ -180,7 +192,10 @@
if (_hasClass(val, emptyCSS)) {
return " "
}
return formatValue(val.textContent);
return {
v: formatValue(val.textContent),
t: getType(val.className)
};
}).join(colD);
}).join(rdel),
dataObject = TableExport.prototype.escapeHtml(
Expand Down

0 comments on commit 651ea87

Please sign in to comment.