Bug 35475: Improve concatenated string and fix error in JS file

Fixes 2 problems noted in comment#2 and comment#3 on the bug
report.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f0e7260a29)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Katrin Fischer 2023-12-23 16:19:45 +00:00 committed by Fridolin Somers
parent ff9fe04792
commit 46156c1981
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@
for (item of items[0]) {
itemsSet.add({
id: item.item_id,
content: _("Item") + " " + item.external_id,
content: _("Item %s").format(item.external_id),
});
}

View file

@ -28,6 +28,6 @@ $("#cancelBookingForm").on('submit', function(e) {
});
deleting.fail(function(data) {
$('#cancel_booking_result').replaceWith('<div id="booking_result" class="alert alert-danger">'+_("Failure")+'</div>');
$('#cancel_booking_result').replaceWith('<div id="booking_result" class="alert alert-danger">'+__("Failure")+'</div>');
});
});