Commit 222c01b2 by Julian Arni Committed by Victor Shnayder

Removed console logs

parent adb77ea6
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
url: molFile, url: molFile,
dataType: "text", dataType: "text",
success: function(data) { success: function(data) {
console.log("Done."); //console.log("Done.");
loadAppletData(applet, data, input_field); loadAppletData(applet, data, input_field);
}, },
error: function() { error: function() {
...@@ -121,8 +121,8 @@ ...@@ -121,8 +121,8 @@
input_field, element); input_field, element);
var value = { mol: mol, info: info }; var value = { mol: mol, info: info };
console.log("Molecule info:"); //console.log("Molecule info:");
console.log(info); //console.log(info);
input_field.val(JSON.stringify(value)); input_field.val(JSON.stringify(value));
...@@ -131,16 +131,16 @@ ...@@ -131,16 +131,16 @@
function formatInfo(info, input_field, element) { function formatInfo(info, input_field, element) {
var results = []; var results = [];
console.log("element parent is"+$(element).parent()) //console.log("element parent is"+$(element).parent())
var errordiv = $(element).parent().find('.errormsgs')[0]; var errordiv = $(element).parent().find('.errormsgs')[0];
console.log(errordiv); //console.log(errordiv);
if (!errordiv) { if (!errordiv) {
// This is a bit hackish, but works. // This is a bit hackish, but works.
// There are situations where formatInfo is called but no div yet exists // There are situations where formatInfo is called but no div yet exists
// to my knowledge (blame John Hess) this is always followed by a call to // to my knowledge (blame John Hess) this is always followed by a call to
// this function once the div does exist // this function once the div does exist
console.log("There is no errordiv loaded yet. trying again soon"); //console.log("There is no errordiv loaded yet. trying again soon");
return [] return []
} }
...@@ -153,12 +153,12 @@ ...@@ -153,12 +153,12 @@
}); });
} }
else { else {
console.log("err"); //console.log("err");
// remove Brian's html tags // remove Brian's html tags
var tags = /<((\/)?\w{1,7})>/g; var tags = /<((\/)?\w{1,7})>/g;
var errmsg = info.replace(tags, ' '); var errmsg = info.replace(tags, ' ');
console.log(errmsg); //console.log(errmsg);
errordiv.innerHTML = errmsg; errordiv.innerHTML = errmsg;
errordiv.style.visibility = 'visible'; errordiv.style.visibility = 'visible';
} }
......
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