From 759086e654bb0ee09bf20a60992b88d255f44c76 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 12 Mar 2013 11:45:36 +0100 Subject: [PATCH] [ticket/9657] Remove AJAX from delete button and approval/restore form When a post is being deleted and the user goes to the next page, the first post of that next page is now on the page before. So the user performing the action will skip the post. Until we found a good solution to fix this, we just remove the AJAX from these features. For more information see http://tracker.phpbb.com/browse/PHPBB3-11340 PHPBB3-9657 --- phpBB/assets/javascript/core.js | 12 ------------ phpBB/styles/prosilver/template/viewtopic_body.html | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 7a4aceee0b..40da09377e 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -317,18 +317,6 @@ phpbb.ajaxify = function(options) { }); } }, false); - - // Add the click function to the code we just laoded. - // Should be removed and replace with a call to .on() - // when jQuery is updated to 1.7.x or higher - // $(document).on('click', '#delete_permanent', function () {}); - $('#delete_permanent').click(function () { - if ($(this).attr('checked')) { - $('#delete_reason').hide(); - } else { - $('#delete_reason').show(); - } - }); } } diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html index d20520b421..f5a4028223 100644 --- a/phpBB/styles/prosilver/template/viewtopic_body.html +++ b/phpBB/styles/prosilver/template/viewtopic_body.html @@ -137,7 +137,7 @@