This commit is contained in:
Kenneth Jao 2016-09-10 00:39:41 -04:00
commit a9ef959369

View File

@ -491,7 +491,7 @@ Template.profile.events({
var modifyingInput = Session.get("modifying"); var modifyingInput = Session.get("modifying");
var p = event.target; var p = event.target;
if(p.className.includes("cre")) { if(p.className.includes("cre")) {
var input = p.parentNode.parentNode.childNodes[3] var input = p.parentNode.parentNode.childNodes[3];
} else { } else {
var input = p.parentNode.parentNode.childNodes[1].childNodes[5]; var input = p.parentNode.parentNode.childNodes[1].childNodes[5];
} }
@ -561,7 +561,7 @@ function closeInput(modifyingInput) { // Closes current modifying input.
try { try {
document.getElementById("modifyingInput"+"restrict").style.display = "none"; document.getElementById("modifyingInput"+"restrict").style.display = "none";
} catch(err) {} } catch(err) {}
if (input.value === "") { if (input.value === "") {
span.childNodes[0].nodeValue = "Click here to edit..."; span.childNodes[0].nodeValue = "Click here to edit...";
} else { } else {