mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-06 20:51:39 +02:00
[ticket/9657] Remove softdelete reason field when permanent delete is selected
PHPBB3-9657
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user