From 4e9cf27394da2481a8ac81a2965873a3a16b136f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 11 Mar 2013 23:08:40 +0100 Subject: [ticket/9657] Remove softdelete reason field when permanent delete is selected PHPBB3-9657 --- phpBB/styles/prosilver/template/ajax.js | 8 ++++++++ phpBB/styles/prosilver/template/confirm_delete_body.html | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'phpBB/styles') diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 357e9a6fa3..5661a51bc9 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -230,6 +230,14 @@ $('#quick-mod-select').change(function () { $('#quickmodform').submit(); }); +$('#delete_permanent').click(function () { + if ($(this).attr('checked')) { + $('#delete_reason').hide(); + } else { + $('#delete_reason').show(); + } +}); + /** * Toggle the member search panel in memberlist.php. * diff --git a/phpBB/styles/prosilver/template/confirm_delete_body.html b/phpBB/styles/prosilver/template/confirm_delete_body.html index 9f36d2d824..964c859634 100644 --- a/phpBB/styles/prosilver/template/confirm_delete_body.html +++ b/phpBB/styles/prosilver/template/confirm_delete_body.html @@ -11,9 +11,9 @@ -