From f4498d54ac6cb92afa0f58ba25519feaecd8f00b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 14 Nov 2023 07:26:59 -0500 Subject: [PATCH] Bug 30070: (follow-up) Fix javascript errors Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/edifactmsgs.tt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt index b21e6b76e9..7ce04d7704 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt @@ -139,14 +139,14 @@ }, { "title": "Actions", + "className": "actions", "searchable": false, "orderable": false, - "render": function( row, type, val, meta ) { - - var result = ' View message'; - result += ' Delete'; + "render": function(data, type, row, meta) { + var result = ' View message '; + result += ' Delete '; if ( row.status == 'new' ) { - reslt += ' Import'; + result += ' Import '; } return result; } @@ -157,7 +157,7 @@ var EDIModal = $("#EDI_modal"); var EDIModalBody = $("#EDI_modal .modal-body"); - $(".view_message").on("click", function(e){ + $("body").on("click", ".view_message", function(e){ e.preventDefault(); var page = $(this).attr("href"); EDIModalBody.load(page + " #edimsg"); @@ -170,7 +170,7 @@ EDIModal.on("hidden.bs.modal", function(){ EDIModalBody.html("
\"\" "+_("Loading")+"
"); }); - $(".delete_msg").on("click",function(){ + $("body").on("click", ".delete_msg" ,function(){ return confirm(_("Are you sure you want to delete this message?")); }); }); -- 2.39.5