diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2013-03-11 23:08:40 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-03-11 23:08:40 +0100 |
| commit | 4e9cf27394da2481a8ac81a2965873a3a16b136f (patch) | |
| tree | e20544fc06e627772df9de777155a19cfa32f4ad /phpBB/assets | |
| parent | b727e1eedaab27c99a733b94bcdddbc55cc929d9 (diff) | |
| download | forums-4e9cf27394da2481a8ac81a2965873a3a16b136f.tar forums-4e9cf27394da2481a8ac81a2965873a3a16b136f.tar.gz forums-4e9cf27394da2481a8ac81a2965873a3a16b136f.tar.bz2 forums-4e9cf27394da2481a8ac81a2965873a3a16b136f.tar.xz forums-4e9cf27394da2481a8ac81a2965873a3a16b136f.zip | |
[ticket/9657] Remove softdelete reason field when permanent delete is selected
PHPBB3-9657
Diffstat (limited to 'phpBB/assets')
| -rw-r--r-- | phpBB/assets/javascript/core.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 40da09377e..7a4aceee0b 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -317,6 +317,18 @@ 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(); + } + }); } } |
