aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-02-04 21:11:24 -0500
committercash <cash.costello@gmail.com>2012-02-04 21:11:24 -0500
commitfc9e6c0ce5aa5e1c6ffec852b2033acd04943c60 (patch)
tree0a4b36c898ac1bac603e459992e406ce3f919b21 /mod/messageboard/views
parent1c361b9b73f6dba4d495d9f47441ba98741e3bd7 (diff)
downloadelgg-fc9e6c0ce5aa5e1c6ffec852b2033acd04943c60.tar.gz
elgg-fc9e6c0ce5aa5e1c6ffec852b2033acd04943c60.tar.bz2
Fixes #4354 fixes messageboard delete
Diffstat (limited to 'mod/messageboard/views')
-rw-r--r--mod/messageboard/views/default/messageboard/js.php3
1 files changed, 2 insertions, 1 deletions
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();
}
});
}