From 01dc35bedae4c559c9028c1d3a9a43e95507de0d Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Tue, 11 Nov 2014 17:20:59 +0000 Subject: [PATCH] Use full line endings to give Win support in downloads --- .../Views/Genotypes/GenotypeChannel.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/webapp/scripts/Views/Genotypes/GenotypeChannel.js b/webapp/scripts/Views/Genotypes/GenotypeChannel.js index 4ee9a6f296..40ce2c7df7 100644 --- a/webapp/scripts/Views/Genotypes/GenotypeChannel.js +++ b/webapp/scripts/Views/Genotypes/GenotypeChannel.js @@ -400,20 +400,20 @@ define(["require", "_", "d3", "blob", "filesaver", "DQX/Model", "DQX/SQL", "DQX/ that.download_view = function() { var data = ''; - data += '#Dataset: ' + MetaData.database + '\n'; - data += '#Workspace: ' + MetaData.workspaceid + '\n'; - data += '#Table:' + that.table_info.tableCapNamePlural + that.view.colour_channel == 'call' ? ' Calls' : ' Allele Depths' + '\n'; - data += '#'+ that.table_info.col_table.tableCapNamePlural + ' query: ' + that.table_info.col_table.createQueryDisplayString(that.model.col_query) + '\n'; - data += '#'+ that.table_info.row_table.tableCapNamePlural + ' query: ' + that.table_info.row_table.createQueryDisplayString(that.model.row_query) + '\n'; - data += '#Choromosome:' + that.model.chrom + '\n'; - data += '#Start:' + Math.floor(that.model.col_start) + '\n'; - data += '#End:' + Math.ceil(that.model.col_end) + '\n'; + data += '#Dataset: ' + MetaData.database + '\r\n'; + data += '#Workspace: ' + MetaData.workspaceid + '\r\n'; + data += '#Table:' + that.table_info.tableCapNamePlural + that.view.colour_channel == 'call' ? ' Calls' : ' Allele Depths' + '\r\n'; + data += '#'+ that.table_info.col_table.tableCapNamePlural + ' query: ' + that.table_info.col_table.createQueryDisplayString(that.model.col_query) + '\r\n'; + data += '#'+ that.table_info.row_table.tableCapNamePlural + ' query: ' + that.table_info.row_table.createQueryDisplayString(that.model.row_query) + '\r\n'; + data += '#Choromosome:' + that.model.chrom + '\r\n'; + data += '#Start:' + Math.floor(that.model.col_start) + '\r\n'; + data += '#End:' + Math.ceil(that.model.col_end) + '\r\n'; Serialise.createStoredURL(function(url) { - data += '#URL: '+url+'\n'; + data += '#URL: '+url+'\r\n'; data += 'Position\t'; for(var i=0; i