Skip to content

Commit

Permalink
Merge pull request #1298 from BCStudentSoftwareDevTeam/importpopup-fix
Browse files Browse the repository at this point in the history
linked cancel and close buttons in course management import preview
  • Loading branch information
BrianRamsay committed Jul 25, 2024
2 parents dff423f + 734b4e3 commit ed8a060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/static/js/manageServiceLearningFaculty.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $(document).ready( function () {
$("#submitImportedCourses").modal("toggle");
});

$('#closeAddCourseParticipants').on('click', function () {
$('#closeAddCourseParticipants, #addCourseParticipantsXBtn').on('click', function () {
$('#addCourseParticipants')[0].form.reset()
$('#previewButton').prop('disabled', true)
})
Expand All @@ -85,7 +85,7 @@ $(document).ready( function () {
}
}

$("#cancelModalPreview").click(function(){
$("#cancelModalPreview, #closeModalPreview").click(function(){
$.ajax({
url: "/deleteUploadedFile",
type: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion app/templates/admin/manageServiceLearningFaculty.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ <h5 class="modal-title">Upload Excel File</h5>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">List of Participants</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" id="closeModalPreview"></button>
</div>
<div class="modal-body py-0">
<br>
Expand Down

0 comments on commit ed8a060

Please sign in to comment.