Skip to content

Commit f7d90c2

Browse files
committed
Save button on Campaign modal not working from report by tag page.
1 parent 0ff8d81 commit f7d90c2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

source/src/main/webapp/js/pages/CampaignList.js

-9
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ $.when($.getScript("js/global/global.js")).then(function () {
3131
function initPage() {
3232
displayPageLabel();
3333

34-
// handle the click for specific action buttons
35-
$("#editTestcampaignButton").click(editEntryModalSaveHandler);
36-
$("#addTestcampaignButton").click(addEntryModalSaveHandler);
37-
38-
//clear the modals fields when closed
39-
$('#editTestcampaignModal').on('hidden.bs.modal', editEntryModalCloseHandler);
40-
$('#addTestcampaignModal').on('hidden.bs.modal', addEntryModalCloseHandler);
41-
$('#viewTestcampaignModal').on('hidden.bs.modal', viewEntryModalCloseHandler);
42-
4334
displayInvariantList("screenshot", "SCREENSHOT", false, undefined, "");
4435
displayInvariantList("video", "VIDEO", false, undefined, "");
4536
displayInvariantList("verbose", "VERBOSE", false, undefined, "");

source/src/main/webapp/js/transversalobject/Campaign.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ function editEntryClick(param) {
316316
$('#editTestcampaignButton').attr('class', 'btn btn-primary');
317317
$('#editTestcampaignButton').removeAttr('hidden');
318318

319+
// handle the click for specific action buttons
320+
$("#editTestcampaignButton").click(editEntryModalSaveHandler);
321+
$("#addTestcampaignButton").click(addEntryModalSaveHandler);
322+
323+
//clear the modals fields when closed
324+
$('#editTestcampaignModal').on('hidden.bs.modal', editEntryModalCloseHandler);
325+
$('#addTestcampaignModal').on('hidden.bs.modal', addEntryModalCloseHandler);
326+
$('#viewTestcampaignModal').on('hidden.bs.modal', viewEntryModalCloseHandler);
327+
319328
var formEdit = $('#editTestcampaignModal');
320329

321330
showLoader("#testcampaignList");
@@ -997,9 +1006,9 @@ function aoColumnsFunc_Tag() {
9971006
var aoColumns = [
9981007
{"data": "1", "sName": "Tag", "sWidth": "250px", "title": doc.getDocOnline("tag", "tag")},
9991008
{
1000-
"data": "4",
1001-
"sName": "DateCreated",
1002-
"sWidth": "150px",
1009+
"data": "4",
1010+
"sName": "DateCreated",
1011+
"sWidth": "150px",
10031012
"title": doc.getDocLabel("page_tag", "datecreated"),
10041013
"mRender": function (data, type, oObj) {
10051014
return getDate(oObj["4"]);

0 commit comments

Comments
 (0)