ref 18034: Support export csv with Firefox and Safari
https://support.d4science.org/issues/18034 Updated csv export
This commit is contained in:
parent
3cddab592a
commit
975779d8e4
|
@ -183,7 +183,7 @@ public class Chart extends HTMLPanel {
|
|||
}
|
||||
|
||||
var csvData=heading+"\n"+datasetRow + "\n";
|
||||
var csvDataEncoded=encodeURIComponent(csvData);
|
||||
var csvDataEncoded=encodeURI(csvData);
|
||||
csvContent += csvDataEncoded;
|
||||
} else {
|
||||
var datasetRow = seriesData.getLabel();
|
||||
|
@ -192,7 +192,7 @@ public class Chart extends HTMLPanel {
|
|||
datasetRow += "," + recordData.getY();
|
||||
}
|
||||
var csvData=datasetRow + "\n";
|
||||
var csvDataEncoded=encodeURIComponent(csvData);
|
||||
var csvDataEncoded=encodeURI(csvData);
|
||||
csvContent += csvDataEncoded;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue