aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-05 16:37:36 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-05 16:37:36 +0000
commit0c3df8a825d4e89022ef82ce1501d9a8fc322345 (patch)
tree06d1747cafdec66ab4b9af5d8afb987f24c433c6
parentd84467ff3dbee949f714697c32b302e06fb0889d (diff)
downloadsemanticscuttle-0c3df8a825d4e89022ef82ce1501d9a8fc322345.tar.gz
semanticscuttle-0c3df8a825d4e89022ef82ce1501d9a8fc322345.tar.bz2
Bug fix: correct ajax multiple delete
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@252 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--ajaxDelete.php1
-rw-r--r--jsScuttle.php11
2 files changed, 6 insertions, 6 deletions
diff --git a/ajaxDelete.php b/ajaxDelete.php
index e40dc1a..a1119ca 100644
--- a/ajaxDelete.php
+++ b/ajaxDelete.php
@@ -40,6 +40,7 @@ if (!$bookmarkservice->editAllowed($bookmark)) {
} else {
$result = T_('Failed to delete bookmark');
}
+
?>
<response>
<method>deleteConfirmed</method>
diff --git a/jsScuttle.php b/jsScuttle.php
index c21fa0e..0e8b96a 100644
--- a/jsScuttle.php
+++ b/jsScuttle.php
@@ -32,18 +32,17 @@ function deleteCancelled(ele) {
}
function deleteConfirmed(ele, input, response) {
- if (deleted == false) {
+ //if (deleted == false) {
deleted = ele.parentNode.parentNode.parentNode.parentNode;
- }
+ //}
var post = 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';
-
+ loadXMLDoc('<?php echo ROOT; ?>ajaxDelete.php?id=' + input);
+ post.style.display = 'none';
}
}
@@ -125,7 +124,7 @@ function loadXMLDoc(url) {
function processStateChange() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
- response = xmlhttp.responseXML.documentElement;
+ response = xmlhttp.responseXML.documentElement;
method = response.getElementsByTagName('method')[0].firstChild.data;
result = response.getElementsByTagName('result')[0].firstChild.data;
eval(method + '(\'\', result)');