betere syntax

svn path=/Website/trunk/; revision=31127
This commit is contained in:
2016-10-18 13:33:23 +00:00
parent cad3be7d94
commit 88c40393b1

View File

@@ -1301,9 +1301,8 @@ function __rsMakeTableRow(oRs, oRsFlexData, cnt, anyMultiActions, noFlexResult)
if ((isPrinting || showProperties || isExcel || !columns[i].combine) && !(isExcel && columns[i].hidden))
{
appender += "<td" + align + hidden + tooltip + columnClass + customSort + nowrap;
var abbr = columns[i].datatype; // abbreviation
if (isExcel && val != null && val.length > 0 && val.match(/[0-9]/)
&& abbr != "date" && abbr != "currency" && abbr != "datetime" && abbr != "float" && abbr != "number")
&& !inArray(columns[i].datatype, ["date", "currency", "datetime", "float", "number"]))
{
appender += " style='mso-number-format:\"\@\"'";
}