From c1dbf16d59fa8f991aae7dc92fafe20c8a8d06b0 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 19 Nov 2024 15:07:43 +0000 Subject: [PATCH] Bug 35604: Follow-up Consider success message from backend and present it. Add btn-primary class to auto ILL screen --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- koha-tmpl/intranet-tmpl/prog/js/ill-autobackend.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index f7dcade4fab..60b8a4a62da 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -964,7 +964,7 @@ - + Cancel diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-autobackend.js b/koha-tmpl/intranet-tmpl/prog/js/ill-autobackend.js index 64ecb33a56b..b06557b47fc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-autobackend.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-autobackend.js @@ -24,7 +24,7 @@ $(document).ready(function () { auto_backend.available = 0; }, success: function (data) { - _addSuccessMessage(auto_backend.name); + _addSuccessMessage(auto_backend.name, data); auto_backend.available = 1; }, error: function (request, textstatus) { @@ -84,11 +84,11 @@ $(document).ready(function () { _addBackendOption("Standard"); } - function _addSuccessMessage(auto_backend_name) { + function _addSuccessMessage(auto_backend_name, data) { _removeVerifyingMessage(auto_backend_name); $(auto_ill_el + " > #backend-" + auto_backend_name).append( ' ' + - __("Available.").format(auto_backend_name) + + __("Available.").format(auto_backend_name) + " " + data.success + "" ); } -- 2.43.0