]> git.koha-community.org Git - koha.git/commit
Bug 17817: Fix cloning subfields using select2
authorPatricio Marrone <pmarrone@unc.edu.ar>
Tue, 10 Jan 2017 18:53:33 +0000 (15:53 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 15 Jan 2017 16:11:13 +0000 (17:11 +0100)
commit57866dc731e8f78d6dbae696e9ca400b29e9b8d9
tree813c76cebe1f76eae872c96a02d9ee9fa4ae1934
parentba45608b0d823e4bac4e6794392d53f4eda4b9c2
Bug 17817: Fix cloning subfields using select2

Based on Jonathan's patch (the DO NOT PUSH one), I put together this fix.
What was changed is that select2 is reinitialized only after the cloned element
has been appended to the DOM (so that select2 can correctly calculate the field's
width). Also, I changed the selectors that searched for the line divs (for reordering)
and for the subfield's input element (for erasing the field's value) to be more specific,
since select2 introduced divs that broke some assumptions about the expected HTML structure

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
I confirm that these 2 patches fix the add item and mod biblio views as
well as the batch item modification tools.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit cc26863d355fb9524ed90aba7c03c53115641900)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js