From c9ff8889428f39fbde989baa6943a15b9f895a72 Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 19 Feb 2011 20:17:57 +0000 Subject: Fixes #2962. I hate ie. git-svn-id: http://code.elgg.org/elgg/trunk@8345 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/messageboard/views/default/messageboard/js.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/messageboard/views/default') diff --git a/mod/messageboard/views/default/messageboard/js.php b/mod/messageboard/views/default/messageboard/js.php index b51c59209..0ec56d7d9 100644 --- a/mod/messageboard/views/default/messageboard/js.php +++ b/mod/messageboard/views/default/messageboard/js.php @@ -7,7 +7,9 @@ elgg.messageboard.init = function() { // can't undelete because of init load order form.parent().find('a.elgg-requires-confirmation').removeClass('elgg-requires-confirmation'); // delegate() instead of live() because live() has to be at the top level of chains...can't use parent(). - form.parent().delegate('.delete-button a', 'click', elgg.messageboard.delete); + + // delete is a little-known operator in JS. IE loses its mind if you name a method that. + form.parent().delegate('.delete-button a', 'click', elgg.messageboard.deletePost); } elgg.messageboard.submit = function(e) { @@ -32,7 +34,7 @@ elgg.messageboard.submit = function(e) { e.preventDefault(); } -elgg.messageboard.delete = function(e) { +elgg.messageboard.deletePost = function(e) { var link = $(this); var confirmText = link.attr('title') || elgg.echo('question:areyousure'); -- cgit v1.2.3