Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard f6a0eb3a2a
Bug 30693: Javascript broken on request.pl
The holds page in the staff interface has some JavaScript relating to
Bootstrap tabs, but the tabs are not always present on the page. This
leads to a JS error after you have selected the patron for the hold.

This patch adds a check for the tabs container element before executing
the code.

To test, apply the patch and locate a bibliographic record on which to
place a hold.

- On the initial holds screen should see tabs for "Patrons" and "Clubs."
  Both should work correctly.
- Select a patron to place the hold for.
- On the page where you enter hold details (pickup library, hold
  expiration, etc.) there should be no JavaScript error in the console.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2022-05-05 16:10:38 +01:00
..
acqui
admin Bug 28138: (QA follow-up) Link system preference in new system preference description 2022-05-04 14:29:23 -10:00
authorities
basket
batch
catalogue Bug 30433: Convert advanced search tabs to Bootstrap 2022-05-02 11:22:58 -10:00
cataloguing Bug 30434: Convert catalog merge page tabs to Bootstrap 2022-05-02 11:22:57 -10:00
circ Bug 30436: Convert article requests tabs to Bootstrap 2022-05-03 11:19:50 -10:00
clubs
course_reserves
errors
ill
installer
labels
mana
members Bug 30549: Replace the use of jQueryUI Accordion on pending patron updates page 2022-05-04 14:29:24 -10:00
offline_circ
onboarding
patron_lists
patroncards
plugins
pos
recalls
reports Bug 30632: Fix report author display in list of saved reports 2022-05-03 11:19:50 -10:00
reserve Bug 30693: Javascript broken on request.pl 2022-05-05 16:10:38 +01:00
reviews
rotating_collections
serials Bug 30466: Convert serials pages tabs to Bootstrap 2022-05-03 11:19:50 -10:00
services
suggestion Bug 30473: Convert suggestions page tabs to Bootstrap 2022-05-04 14:29:24 -10:00
tags
test
tools Bug 30475: Convert tools pages tabs to Bootstrap (part 2) 2022-05-04 14:29:24 -10:00
virtualshelves
about.tt Bug 28998: (follow-up) Add warning on about for missing key 2022-05-04 05:18:31 -10:00
auth.tt
intranet-main.tt