Skip to content

Commit

Permalink
Create button on Campaign modal not working from Campaign list page.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Jun 19, 2024
1 parent f7d90c2 commit 69a313b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/src/main/webapp/js/transversalobject/Campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,15 @@ function addEntryClick() {
$('#addTestcampaignButton').attr('class', 'btn btn-primary');
$('#addTestcampaignButton').removeAttr('hidden');

// handle the click for specific action buttons
$("#editTestcampaignButton").click(editEntryModalSaveHandler);
$("#addTestcampaignButton").click(addEntryModalSaveHandler);

//clear the modals fields when closed
$('#editTestcampaignModal').on('hidden.bs.modal', editEntryModalCloseHandler);
$('#addTestcampaignModal').on('hidden.bs.modal', addEntryModalCloseHandler);
$('#viewTestcampaignModal').on('hidden.bs.modal', viewEntryModalCloseHandler);

$("#editTestcampaignModal #campaign").empty();
$("#editTestcampaignModal #originalCampaign").empty();

Expand Down

0 comments on commit 69a313b

Please sign in to comment.