diff options
| author | Callum Macrae <callum@lynxphp.com> | 2012-02-19 17:07:24 +0000 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:10:16 +0200 |
| commit | d8e21952fa4660ba2ccc6587bef6275c8cddab37 (patch) | |
| tree | 9234b746df3e25d032eff68797a34c7460ac7a08 /phpBB/styles/prosilver/template | |
| parent | 64df9d1406a82739d5b85605e29d9d7f3bd3453d (diff) | |
| download | forums-d8e21952fa4660ba2ccc6587bef6275c8cddab37.tar forums-d8e21952fa4660ba2ccc6587bef6275c8cddab37.tar.gz forums-d8e21952fa4660ba2ccc6587bef6275c8cddab37.tar.bz2 forums-d8e21952fa4660ba2ccc6587bef6275c8cddab37.tar.xz forums-d8e21952fa4660ba2ccc6587bef6275c8cddab37.zip | |
[ticket/10273] Fixed accepting / denying posts AJAX.
PHPBB3-10273
Diffstat (limited to 'phpBB/styles/prosilver/template')
| -rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index f82da9f70e..f42c37fbce 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -17,8 +17,9 @@ phpbb.add_ajax_callback('post_delete', function() { }); // This callback removes the approve / disapprove div or link. -phpbb.add_ajax_callback('post_approve', function(res, act) { - $(this).parents((act === 'approve') ? '.rules' : '.post').fadeOut(function() { +phpbb.add_ajax_callback('post_approve', function(res) { + var remove = (res.approved) ? $(this) : $(this).parents('.post'); + $(remove).fadeOut(function() { $(this).remove(); }); }); |
