Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ivp08001 committed Feb 12, 2016
2 parents 30df841 + b45bc1e commit 19ff819
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions VQI_PathwayEditorNoGUI.js
Expand Up @@ -2,7 +2,7 @@ var VQI_PathwayEditorNoGUI = function () {
self = this;
var nodeTypes = ["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 services = {};
services['pathwayFinder'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php';
services['PATHWAY_LIST'] = 'http://bibci.engr.uconn.edu/yuz12012/pathwayVisual//PathwayParser/ajaxJSON.php';
var nodeCounter = 0;
var edgeCounter = 0;
function preAddProcessing(obj) {
Expand Down Expand Up @@ -112,20 +112,20 @@ var VQI_PathwayEditorNoGUI = function () {
self.sprayColorExternalNoGUI = function (list) {
sprayColorNoGUI(list, self.json);
}

self.getJSON = function () {
return JSON.stringify(self.json);
}

self.loadPathwayExternalNoGUI = function (id, person, f) {
self.loadPathwayExternalNoGUI = function (id, f) {
var callback = f || null;
$.post(services['pathwayFinder'], {
$.post(services['PATHWAY_LIST'], {
pid: id
}, function (data) {
self.json = JSON.parse(data);
setElementsNoGUI(self.json);
if (callback !== null) {
callback(id, person);
callback();
}
});
}
Expand Down

0 comments on commit 19ff819

Please sign in to comment.