From 3559188f2898f011cb93053c0c1a1e824e9fe86a Mon Sep 17 00:00:00 2001 From: ivanPozdnyakov Date: Sun, 24 Jan 2016 13:14:08 -0500 Subject: [PATCH] set default value for old position values in pre-processing (might not actually be necessary). Also now valid types are identified with lowercase identifying names, making any type of casing in the json valid. The name in the json is converted to lower and then compared. --- VQI_PathwayEditorGUI.js | 50 ++++++++++++++++++++++------------------- index.php | 5 +++-- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/VQI_PathwayEditorGUI.js b/VQI_PathwayEditorGUI.js index 7b579f6..a7dc8f4 100644 --- a/VQI_PathwayEditorGUI.js +++ b/VQI_PathwayEditorGUI.js @@ -18,7 +18,7 @@ var VQI_PathwayEditorGUI = function (parent) { // Globals var self = this; - var types = ["bundleOne", "bundleTwo", "gene", "geneProduct", "protein", "rna", "microRNA", "kinase", "ligand", "receptor", "biologicalProcess", "triangle", "rectangle", "circle", "ellipse", "pentagon", "hexagon", "heptagon", "octagon", "star", "diamond", "vee", "rhomboid", "label"]; + var types = ["bundleone", "bundletwo", "gene", "geneproduct", "protein", "rna", "microrna", "kinase", "ligand", "receptor", "biologicalprocess", "triangle", "rectangle", "circle", "ellipse", "pentagon", "hexagon", "heptagon", "octagon", "star", "diamond", "vee", "rhomboid", "label"]; var personId = ""; var pathName = ""; var states = []; @@ -155,8 +155,8 @@ var VQI_PathwayEditorGUI = function (parent) { strVar += "
"; strVar += "