Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard bee15e627f Bug 21870: Convert browser alerts to modals: OPAC user summary
This patch updates the user summary page in the OPAC so that JavaScript
alerts are replaced with Bootstrap modals. This provides us the ability
to more carefully control the content of confirmation dialogs and their
control buttons.

A global function for defining a modal confirmation boxes has been
added, to which one can pass:

 - The modal title
 - Body
 - Text for submit and cancel buttons
 - A callback function to trigger on submit

To test, apply the patch and clear your browser cache if necessary.

 - Log in to the OPAC as a user who has holds and article requests.
 - Test the following interactions, both the confirmation and cancel
   options for each:
     - Cancel a hold
     - Suspend all holds
     - Resume all holds
     - Cancel an article request

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-26 14:36:17 +00:00
..
amazonimages.js
authtoresults.js
bakertaylorimages.js
basket.js Bug 21174: (follow-up) Removed MSG_IN_YOUR_CART and its usage in OPAC JS 2018-10-17 14:31:42 +00:00
browserid_include.js
coce.js
datatables.js
global.js Bug 21870: Convert browser alerts to modals: OPAC user summary 2019-02-26 14:36:17 +00:00
google-jackets.js
googleindictransliteration.js
localcovers.js
openlibrary.js
overdrive.js Bug 21542: Use modal and password field for overdrive password 2018-10-17 12:26:18 +00:00
recordedbooks.js Bug 17602: Move spinner location to include file 2018-10-01 13:56:59 +00:00
script.js
tags.js