diff --git a/jsScuttle.php b/jsScuttle.php index 6765ffe..d802b90 100644 --- a/jsScuttle.php +++ b/jsScuttle.php @@ -20,7 +20,7 @@ String.prototype.trim = function() { var deleted = false; function deleteBookmark(ele, input){ var confirmDelete = " - "; - ele.style.display = 'none'; + ele.style.display = 'none'; ele.parentNode.innerHTML = ele.parentNode.innerHTML + confirmDelete; } @@ -34,14 +34,16 @@ function deleteCancelled(ele) { function deleteConfirmed(ele, input, response) { if (deleted == false) { deleted = ele.parentNode.parentNode.parentNode.parentNode; - } + } var post = deleted; - post.className = 'xfolkentry deleted'; + post.className = 'xfolkentry deleted'; if (response != '') { post.style.display = 'none'; deleted = false; } else { loadXMLDoc('ajaxDelete.php?id=' + input); + post.style.display = 'none'; + } }