317abac238
Overview: Select2 (Bug 13501) introduced divs and inputs that broke some assumptions about the expected HTML structure. Because of that, expanding fields to show all hidden subfields does not work properly. Steps to Reproduce: 1. Open some book in the editor or create new (cataloguing/addbiblio.pl) 2. Try to minimize or expand fields, that have among subfields the following: — Thesaurus driven subfield → subfield with Select2 — Hidden subfield. Actual Results: — some fields become hidden, some not, and vice versa — in the console, you'll see «Uncaught TypeError: Cannot read property 'match' of null» Expected Results: — all subfields should minimize/maximize completely Additional Information: This happens because Select2 adds some divs, that do not have ID property. The following patch adds check for the needed attribute existance. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> |
||
---|---|---|
.. | ||
pages | ||
acq.js | ||
additem.js | ||
ajax.js | ||
audio_alerts.js | ||
automatic_item_modification_by_age.js | ||
background-job-progressbar.js | ||
basket.js | ||
basketgroup.js | ||
biblio_framework.js | ||
cart.js | ||
cataloging.js | ||
checkouts.js | ||
datatables.js | ||
file-upload.js | ||
holds.js | ||
item_search_fields.js | ||
localcovers.js | ||
marc_modification_templates.js | ||
marc_subfields_structure.js | ||
members.js | ||
merge-record.js | ||
offlinecirc.js | ||
prevent_submit.js | ||
sms_providers.js | ||
staff-global.js | ||
xmlControlfield.js | ||
z3950_search.js |