Merge branch 'master' of github.com:webnotes/wnframework into edge

This commit is contained in:
Rushabh Mehta 2013-01-02 15:29:58 +05:30
commit ea237433cd

View file

@ -34,7 +34,7 @@ wn.to_csv = function(data) {
var res = [];
$.each(data, function(i, row) {
row = $.map(row, function(col) {
return typeof(col)==="string" ? ('"' + col.replace(/"/g, '\"') + '"') : col;
return typeof(col)==="string" ? ('"' + col.replace(/"/g, '""') + '"') : col;
});
res.push(row.join(","));
});