Bugzilla – Attachment 173281 Details for
Bug 38222
Let staff pick a cancellation reason when canceling a booking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38222: (follow-up) Only replace first numerical match in bookings count containers
Bug-38222-follow-up-Only-replace-first-numerical-m.patch (text/plain), 1.14 KB, created by
Paul Derscheid
on 2024-10-24 14:58:41 UTC
(
hide
)
Description:
Bug 38222: (follow-up) Only replace first numerical match in bookings count containers
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2024-10-24 14:58:41 UTC
Size:
1.14 KB
patch
obsolete
>From 92a62ed9b1b59b3575558fb53793b0f32a6b4055 Mon Sep 17 00:00:00 2001 >From: Paul Derscheid <paul.derscheid@lmscloud.de> >Date: Thu, 24 Oct 2024 14:57:04 +0000 >Subject: [PATCH] Bug 38222: (follow-up) Only replace first numerical match in > bookings count containers >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/> >--- > koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js b/koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js >index 4cfdbafa1f..d34196b129 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js >@@ -60,7 +60,10 @@ > return; > } > >- bookingsCount.innerHTML = parseInt(bookingsCount.innerHTML, 10) - 1; >+ bookingsCount.innerHTML = bookingsCount.innerHTML.replace( >+ /\d+/, >+ match => parseInt(match, 10) - 1 >+ ); > } > > function handleShowBsModal(e) { >-- >2.47.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38222
:
173230
|
173231
|
173232
|
173233
|
173264
|
173265
|
173277
|
173278
|
173281
|
173282
|
173312
|
173313
|
173314
|
173315
|
173316
|
173317
|
173318
|
173319
|
173320
|
173321
|
173322
|
173323
|
173336
|
173337
|
173338
|
173339