From 791d1fbbc69e7834128d4d4a69143532f8ad691c Mon Sep 17 00:00:00 2001 From: Aday BA Date: Fri, 22 Nov 2024 16:16:54 +0000 Subject: [PATCH] Fixed support ticket javascript after updates to support Bootstrap 5 (#3975) --- apps/dashboard/app/javascript/support_ticket.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dashboard/app/javascript/support_ticket.js b/apps/dashboard/app/javascript/support_ticket.js index d3532e07e7..97cd7dc904 100644 --- a/apps/dashboard/app/javascript/support_ticket.js +++ b/apps/dashboard/app/javascript/support_ticket.js @@ -36,7 +36,7 @@ jQuery(function (){ } function showAttachmentsError(message) { - const $attachmentsElement = $("[data-toggle='attachments-error']"); + const $attachmentsElement = $("[data-bs-toggle='attachments-error']"); $attachmentsElement.parent().addClass("has-error"); $attachmentsElement.after(`
${message}
`); } @@ -76,14 +76,14 @@ jQuery(function (){ `
- +
`; attachmentPlacementCallback(newAttachment); $("input[type='file']").on("change", updateAttachmentContent); - $("[data-toggle='attachment-delete']").on("click", deleteAttachment); + $("[data-bs-toggle='attachment-delete']").on("click", deleteAttachment); return newAttachment; } @@ -100,7 +100,7 @@ jQuery(function (){ } $(function() { - $("[data-toggle='attachments-add']").on("click", addAttachment); + $("[data-bs-toggle='attachments-add']").on("click", addAttachment); $("#new_support_ticket").submit(validateForm); });