Skip to content

Commit

Permalink
quick fix to last update
Browse files Browse the repository at this point in the history
  • Loading branch information
ivp08001 committed Dec 4, 2015
1 parent 591ca9a commit 69d527a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions VQI_PathwayEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var VQI_PathwayEditor = function(parent) {
var highestZOrder = 999;

var strVar = "";
strVar += " <nav class=\"navbar navbar-default navbar-fixed-top\">";
strVar += " <nav class=\"navbar navbar-default\">";
strVar += " <div class=\"container-fluid\">";
strVar += " <div class=\"navbar-header\">";
strVar += " <a class=\"navbar-brand\" href=\"#\">Pathway name</a>";
Expand Down Expand Up @@ -377,14 +377,13 @@ var VQI_PathwayEditor = function(parent) {

function saveAsPathway(event) {
var obj = JSON.parse(states[states.length - 1]);
JSON.stringify(obj);
obj.data.NAME = document.getElementById(parent + "-pathway-name").value;
$.post(services['pathwaySaver'], {
insertPathway : obj
insertPathway : JSON.stringify(obj)
}, function(data) {
if (data == "Duplicate Pathway!") {
$.post(services['pathwaySaver'], {
updatePathway : obj
updatePathway : JSON.stringify(obj)
}, function(data) {
dialogPathwaySaveAs.dialog("close");
});
Expand All @@ -397,9 +396,8 @@ var VQI_PathwayEditor = function(parent) {

function savePathway(event) {
var obj = JSON.parse(states[states.length - 1]);
JSON.stringify(obj);
$.post(services['pathwaySaver'], {
updatePathway : obj
updatePathway : JSON.stringify(obj)
}, function(data) {
console.log(data);
dialogPathwaySaveAs.dialog("close");
Expand Down

0 comments on commit 69d527a

Please sign in to comment.