1
0
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:
Joas Schilling
2013-03-11 23:08:40 +01:00
parent b727e1eeda
commit 4e9cf27394
4 changed files with 26 additions and 6 deletions

View File

@@ -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();
}
});
}
}