aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template
diff options
context:
space:
mode:
authorVjacheslav Trushkin <arty@phpbb.com>2012-02-22 12:08:13 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:10:16 +0200
commitcf92528390923fe62de67a7dcbc7dbeb878167f6 (patch)
tree99be76e7b488237e3e59681cf390fa7ff9849852 /phpBB/styles/prosilver/template
parent10055d58cdbd1c6441166542467a955ebe286d25 (diff)
downloadforums-cf92528390923fe62de67a7dcbc7dbeb878167f6.tar
forums-cf92528390923fe62de67a7dcbc7dbeb878167f6.tar.gz
forums-cf92528390923fe62de67a7dcbc7dbeb878167f6.tar.bz2
forums-cf92528390923fe62de67a7dcbc7dbeb878167f6.tar.xz
forums-cf92528390923fe62de67a7dcbc7dbeb878167f6.zip
[ticket/10270] Disabling links in disappearing content
Disabling click events for blocks that are being removed via ajax PHPBB3-10270
Diffstat (limited to 'phpBB/styles/prosilver/template')
-rw-r--r--phpBB/styles/prosilver/template/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index 02b1e95b46..9ae7679e3e 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -10,7 +10,7 @@ phpbb.add_ajax_callback('post_delete', function() {
if (el.attr('data-refresh') === undefined)
{
post_id = el[0].href.split('&p=')[1];
- el.parents('#p' + post_id).fadeOut(function() {
+ el.parents('#p' + post_id).css('pointer-events', 'none').fadeOut(function() {
$(this).remove();
});
}
@@ -19,14 +19,14 @@ phpbb.add_ajax_callback('post_delete', function() {
// This callback removes the approve / disapprove div or link.
phpbb.add_ajax_callback('post_approve', function(res) {
var remove = (res.approved) ? $(this) : $(this).parents('.post');
- $(remove).fadeOut(function() {
+ $(remove).css('pointer-events', 'none').fadeOut(function() {
$(this).remove();
});
});
// This callback handles the removal of the quick reply form.
phpbb.add_ajax_callback('qr-submit', function() {
- $(this).fadeOut(function() {
+ $(this).css('pointer-events', 'none').fadeOut(function() {
$(this).remove();
});
});