diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 20:17:57 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 20:17:57 +0000 |
commit | c9ff8889428f39fbde989baa6943a15b9f895a72 (patch) | |
tree | eb845c4a861d56dd885c1273b35b136814d4735a /mod | |
parent | 02a52af62e1579ad174b1160071b82ec11ee31e3 (diff) | |
download | elgg-c9ff8889428f39fbde989baa6943a15b9f895a72.tar.gz elgg-c9ff8889428f39fbde989baa6943a15b9f895a72.tar.bz2 |
Fixes #2962. I hate ie.
git-svn-id: http://code.elgg.org/elgg/trunk@8345 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/messageboard/views/default/messageboard/js.php | 6 |
1 files changed, 4 insertions, 2 deletions
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'); |