diff options
Diffstat (limited to 'phpBB/assets/javascript/core.js')
-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(); + } + }); } } |