summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-17 12:11:05 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-17 12:11:05 +0000
commit60b9c2c903f88e5c32e43dfbbe04679513d835ee (patch)
tree9f684d432c4a240468d2869837c6d296c91831d6
parent981c30b57e7ca7b71c58e90b255e9f0fab51eba8 (diff)
downloadsemanticscuttle-60b9c2c903f88e5c32e43dfbbe04679513d835ee.tar.gz
semanticscuttle-60b9c2c903f88e5c32e43dfbbe04679513d835ee.tar.bz2
Bug fix: correct AJAX deleting of bookmarks (thank you Ricco)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@163 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--jsScuttle.php8
1 files changed, 5 insertions, 3 deletions
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 = "<span><?php echo T_('Are you sure?') ?> <a href=\"#\" onclick=\"deleteConfirmed(this, " + input + ", \'\'); return false;\"><?php echo T_('Yes'); ?></a> - <a href=\"#\" onclick=\"deleteCancelled(this); return false;\"><?php echo T_('No'); ?></a></span>";
- 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('<?php echo $root; ?>ajaxDelete.php?id=' + input);
+ post.style.display = 'none';
+
}
}