From 26a15e982006abf09518b00349e21bb147e27509 Mon Sep 17 00:00:00 2001 From: ivanPozdnyakov Date: Wed, 6 Jan 2016 18:42:55 -0500 Subject: [PATCH] temporary empty entry saved as 0 --- VQI_PathwayEditor.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/VQI_PathwayEditor.js b/VQI_PathwayEditor.js index d208b2e..1214901 100755 --- a/VQI_PathwayEditor.js +++ b/VQI_PathwayEditor.js @@ -599,9 +599,15 @@ var VQI_PathwayEditor = function (parent) { var cy = $('#' + parent + '-cy').cytoscape('get'); for (var line = 1; line < lines.length; line++) { var target = cy.elements("node[name = \"" + lines[line][0] + "\"]"); - var mut = lines[line][1]; - var cnv = lines[line][2]; - var rna = lines[line][3]; + var mut = 0; + var cnv = 0; + var rna = 0; + if(lines[line][1] != "") + mut = lines[line][1]; + if(lines[line][2] != "") + cnv = lines[line][2]; + if(lines[line][3] != "") + rna = lines[line][3]; target.data('rna', rna); target.data('cnv', cnv); target.data('mut', mut);