Commit a417c56a authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

More bug fixes.

parent 322e9f88
...@@ -508,7 +508,8 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -508,7 +508,8 @@ function (_, sup, filesize, ShowImagingModal,
// Write it back to the text area. // Write it back to the text area.
var s = new XMLSerializer(); var s = new XMLSerializer();
var str = s.serializeToString(xml[0]); var str = s.serializeToString(xml[0]);
console.log(str); console.info("SyncSteps");
console.info(str);
$('#profile_rspec_textarea').val(str); $('#profile_rspec_textarea').val(str);
return 0; return 0;
} }
...@@ -531,8 +532,7 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -531,8 +532,7 @@ function (_, sup, filesize, ShowImagingModal,
// Add the tour section (if needed). // Add the tour section (if needed).
xml = AddTourSection(xml); xml = AddTourSection(xml);
var tour = $(xml).find("rspec_tour"); var sub = $(xml).find("rspec_tour > " + which);
var sub = $(tour).find(which);
if (!sub.length) { if (!sub.length) {
var text; var text;
...@@ -561,6 +561,7 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -561,6 +561,7 @@ function (_, sup, filesize, ShowImagingModal,
if (rspec === "") { if (rspec === "") {
return; return;
} }
console.log("ChangeHandlerAux " + which);
console.log(text); console.log(text);
var xmlDoc = $.parseXML(rspec); var xmlDoc = $.parseXML(rspec);
var xml = $(xmlDoc); var xml = $(xmlDoc);
...@@ -569,14 +570,13 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -569,14 +570,13 @@ function (_, sup, filesize, ShowImagingModal,
xml = AddTourSection(xml); xml = AddTourSection(xml);
xml = AddTourSubSection(xml, which); xml = AddTourSubSection(xml, which);
var tour = $(xml).find("rspec_tour"); var sub = $(xml).find("rspec_tour > " + which);
var sub = $(tour).find(which);
$(sub).text(text); $(sub).text(text);
console.log(xml); //console.log(xml);
var s = new XMLSerializer(); var s = new XMLSerializer();
var str = s.serializeToString(xml[0]); var str = s.serializeToString(xml[0]);
console.log(str); //console.log(str);
$('#profile_rspec_textarea').val(str); $('#profile_rspec_textarea').val(str);
} }
...@@ -820,7 +820,7 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -820,7 +820,7 @@ function (_, sup, filesize, ShowImagingModal,
{ {
var callback = function(json) { var callback = function(json) {
sup.HideModal("#waitwait-modal"); sup.HideModal("#waitwait-modal");
console.info(json.value); //console.info(json.value);
if (json.code) { if (json.code) {
sup.SpitOops("oops", json.value); sup.SpitOops("oops", json.value);
...@@ -844,7 +844,7 @@ function (_, sup, filesize, ShowImagingModal, ...@@ -844,7 +844,7 @@ function (_, sup, filesize, ShowImagingModal,
{ {
var callback = function(json) { var callback = function(json) {
sup.HideModal("#waitwait-modal"); sup.HideModal("#waitwait-modal");
console.info(json.value); //console.info(json.value);
if (json.code) { if (json.code) {
sup.SpitOops("oops", json.value); sup.SpitOops("oops", json.value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment