For some reason the unapproveProposal and approveProposal functions were no longer accessible in the reviewModal.html template.
Changes
I removed the unapproveProposal and approveProposal onClick handlers from the template to the javascript to ensure they can properly reference the functions.
Only add the onClick handlers to the modal when the request to populate the modal appears so that there is an actual button to add it to.
Testing
Checkout fix_unapprove_1244
Reset database
Go to Course Management and review a proposal
Verify that you can both approve and unapprove proposals.
Issue
Fixes issue #1244
For some reason the unapproveProposal and approveProposal functions were no longer accessible in the reviewModal.html template.
Changes
Testing