From fc9e6c0ce5aa5e1c6ffec852b2033acd04943c60 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 4 Feb 2012 21:11:24 -0500 Subject: Fixes #4354 fixes messageboard delete --- mod/messageboard/actions/delete.php | 1 - mod/messageboard/views/default/messageboard/js.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/messageboard/actions/delete.php b/mod/messageboard/actions/delete.php index a40329cb5..a1f62278c 100644 --- a/mod/messageboard/actions/delete.php +++ b/mod/messageboard/actions/delete.php @@ -9,7 +9,6 @@ $annotation_id = (int) get_input('annotation_id'); $message = elgg_get_annotation_from_id($annotation_id); if ($message && $message->canEdit() && $message->delete()) { - remove_from_river_by_annotation($annotation_id); system_message(elgg_echo("messageboard:deleted")); } else { system_message(elgg_echo("messageboard:notdeleted")); diff --git a/mod/messageboard/views/default/messageboard/js.php b/mod/messageboard/views/default/messageboard/js.php index 3295c68de..79472069d 100644 --- a/mod/messageboard/views/default/messageboard/js.php +++ b/mod/messageboard/views/default/messageboard/js.php @@ -44,7 +44,8 @@ elgg.messageboard.deletePost = function(e) { if (confirm(confirmText)) { elgg.action($(this).attr('href'), { success: function() { - $(link).closest('li').remove(); + var item = $(link).closest('.elgg-item'); + item.remove(); } }); } -- cgit v1.2.3