Updated 'remove' JS code so that it also works for pending food resources.
Actually fixed this time.
Refactored a reused code chunk in admin_resources.html into its own function.