]> git.koha-community.org Git - koha.git/commit
Bug 7466 - Cart notification popup should appear onscreen even when button isn't
authorOwen Leonard <oleonard@myacpl.org>
Tue, 24 Jan 2012 20:46:20 +0000 (15:46 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Mon, 20 Feb 2012 02:00:15 +0000 (21:00 -0500)
commit53be89a5f03664ec64fe98dbd24bc3b8ca12f1d3
treea3c923def136d835619d3f92efac28c8df0fc89a
parentf4718e6b1481ef6f734b6e56e0272520f5e013c7
Bug 7466 - Cart notification popup should appear onscreen even when button isn't

This patch compares the scroll position of the window with the page
position of the cart button and displays the cart notification
popup at the top of the visible page if the cart button has moved
offscreen.

Includes fix for OPAC and staff client.

Signed-off-by: Aleksa Vujicic <aleksa@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1eb0cbc5bf728f6cdb64b5cf102f227df1efb617)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/basket.js
koha-tmpl/opac-tmpl/prog/en/js/basket.js