Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard 2de22db29c Bug 28901: showCart incorrectly calculates position if content above navbar
This patch makes changes to the OPAC Cart's CSS and JS so that the cart
pop-up message display more consistently. The CSS is changed to use
position "fixed" instead of "absolute." This allows the message to
display without recalculating the position every time, and keeps the
appearance we expect.

The z-index of the message is also increase to prevent it from being
hidden behind a floating toolbar.

To test, apply the patch and rebuild the OPAC CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

 - Perform a catalog search in the OPAC which will return multiple
   results.
 - In the list of search results, click the "Add to cart" link next to
   several search results. Each time you should see a message appear in
   the upper left corner of the screen, "The item has been added to the
   cart."
 - The position of the messages should be consistent no matter how far
   down the page you scroll.
 - Test again after adding content to the OpacHeader region. One way to
   do this is to add the following to the OpacUserJS preference:

   $(document).ready(function(){
     $("#wrapper").prepend('<img src="https://generative-placeholders.glitch.me/image?width=900&height=200&style=triangles&gap=30">');
   });

 - Test at various browser widths, from a phone-sized screen width up to
   wide desktop-sized.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-02 16:06:51 +01:00
..
amazonimages.js
authtoresults.js
bakertaylorimages.js
basket.js Bug 28901: showCart incorrectly calculates position if content above navbar 2021-11-02 16:06:51 +01:00
browse.js Bug 27200: (follow-up) Browse search interface update 2020-12-26 17:58:43 +01:00
browserid_include.js
coce.js Bug 28180: Correctly guess if images have been loaded 2021-10-21 12:24:04 +02:00
datatables.js Bug 28018: Replace obsolete title-string sorting: OPAC templates 2021-04-06 15:56:31 +02:00
Gettext.js
global.js
google-jackets.js Bug 28180: Correctly guess if images have been loaded 2021-10-21 12:24:04 +02:00
i18n.js
ill-availability.js Bug 27170: Fix bug fix 2021-09-21 20:22:57 +02:00
localcovers.js Bug 28180: (follow-up) Updates to styling of lightbox controls 2021-10-21 12:24:04 +02:00
openlibrary.js Bug 28180: Correctly guess if images have been loaded 2021-10-21 12:24:04 +02:00
overdrive.js Bug 28536: Move translatable strings into overdrive.js 2021-09-21 20:22:57 +02:00
ratings.js
recordedbooks.js
script.js Bug 26695: Add modal "shown" event to set cursor focus 2020-11-03 10:57:35 +01:00
tags.js
verovio.js