Bugzilla – Attachment 166579 Details for
Bug 35813
When placing a booking, we should feedback successful placements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35813: Add success feedback after placing/editing bookings
Bug-35813-Add-success-feedback-after-placingeditin.patch (text/plain), 5.83 KB, created by
Kyle M Hall (khall)
on 2024-05-10 15:15:39 UTC
(
hide
)
Description:
Bug 35813: Add success feedback after placing/editing bookings
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-05-10 15:15:39 UTC
Size:
5.83 KB
patch
obsolete
>From 97e2d9252491f19218f7694453a49d39c1de1ebe Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 15 Jan 2024 16:45:03 +0000 >Subject: [PATCH] Bug 35813: Add success feedback after placing/editing > bookings > >This patch restores the lost behaviour that a successful add/edit of a >booking via the 'Place booking' modal should notify the end user that >the submission was sucessful. > >Test plan >1) Set an item as bookable to expose the 'Place booking' button >2) Place a new booking from the following pages and confirm that you > now recieve feedback. > * Catalog > Title > Details > * Catalog > Title > MARC details > * Catalog > Title > ISBD details > * Catalog > Title > Item details > * Catalog > Title > Bookings >3) Edit a booking on the 'Catalog > Title > Bookings' page and confirm > you now recieve feedback. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 1 + > .../prog/en/modules/catalogue/ISBDdetail.tt | 1 + > .../prog/en/modules/catalogue/MARCdetail.tt | 1 + > .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 1 + > .../prog/en/modules/catalogue/moredetail.tt | 4 ++-- > koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js | 9 +++++++++ > 6 files changed, 15 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >index 47740506f89..8844279e478 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >@@ -38,6 +38,7 @@ > <div class="col-sm-10 col-sm-push-2"> > <main> > <div class="row"> >+ <div id="transient_result"></div> > [% INCLUDE 'cat-toolbar.inc' %] > <h1>Bookings for [% INCLUDE 'biblio-title-head.inc' %]</h1> > <div class="page-section" id="bookings-timeline"></div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >index 9ad5d244ed1..dfc82cbb253 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt >@@ -48,6 +48,7 @@ > <div class="col-sm-10 col-sm-push-2"> > <main> > [% INCLUDE 'messages.inc' %] >+ <div id="transient_result"></div> > [% INCLUDE 'cat-toolbar.inc' %] > <h1> > [% IF ( unknownbiblionumber ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >index 75acf77a0b0..6ed54945248 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt >@@ -55,6 +55,7 @@ > <div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div> > [% ELSE %] > >+<div id="transient_result"></div> > [% INCLUDE 'cat-toolbar.inc' %] > > [% UNLESS ( popup ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index be34655b04b..a0d6a860489 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -92,6 +92,7 @@ > [% CoceHost = Koha.Preference('CoceHost') %] > [% SyndeticsCovers = Koha.Preference('SyndeticsEnabled') && Koha.Preference('SyndeticsCoverImages') %] > >+<div id="transient_result"></div> > [% INCLUDE 'cat-toolbar.inc' %] > [% IF ( ocoins ) %] > <!-- COinS / OpenURL --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index aabed1ca3b8..2e43b3c45f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -42,11 +42,11 @@ > <div class="col-sm-10 col-sm-push-2"> > <main> > [% INCLUDE 'messages.inc' %] >+ <div id="transient_result"></div> >+ [% INCLUDE 'cat-toolbar.inc' %] > > <h1>Item details for [% INCLUDE 'biblio-title-head.inc' %]</h1> > >- [% INCLUDE 'cat-toolbar.inc' %] >- > <div id="catalogue_detail_biblio"> > <div class="page-section clearfix"> > <h2>[% title | html %]</h2> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >index bd09384fb9b..9d39f57fd11 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/modals/place_booking.js >@@ -788,6 +788,9 @@ $("#placeBookingForm").on("submit", function (e) { > parseInt($(".bookings_count").html(), 10) + 1 > ); > >+ // Set feedback >+ $('#transient_result').replaceWith('<div id="transient_result" class="dialog success">'+_("Booking successfully placed")+'</div>'); >+ > // Close modal > $("#placeBookingModal").modal("hide"); > }); >@@ -849,6 +852,12 @@ $("#placeBookingForm").on("submit", function (e) { > timeline.focus(data.booking_id); > } > >+<<<<<<< HEAD >+======= >+ // Set feedback >+ $('#transient_result').replaceWith('<div id="transient_result" class="dialog success">'+_("Booking successfully updated")+'</div>'); >+ >+>>>>>>> 9195757e2f1 (Bug 35813: Add success feedback after placing/editing bookings) > // Close modal > $("#placeBookingModal").modal("hide"); > }); >-- >2.30.2
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 35813
:
161048
|
161058
|
161059
|
161086
|
161087
|
162263
|
162264
|
162265
|
163561
|
163562
|
163563
| 166579 |
166580
|
166581