Koha/koha-tmpl/intranet-tmpl/prog/js
Jonathan Druart 81431ee28a Bug 20226: Centralize update child code (CATCODE_MULTI)
Code and variables to deal with the update child feature are not
centralized but copied/pasted in several scripts. Which leads to issues
obsviously (bug 20805 for instance).

Moreover the strings used by the templates are also in several template
files (or .inc)

To deal with that this patch introduces the idea to create 1 .inc file
per .js file
Here we have members-menu.inc for members-menu.js

Test plan:
- Remove all your adult categories (categories.category_type='A')
- Create a patron with a child category
- Try to update to adult category
=> The entry does no longer appears! (This is a change in the behaviour)
- Create one adult category
- Update to adult category
=> There is a JS confirmation message, if you accept the patron will
be updated to the adult category
- Create (at least) another adult category
- Create another child
- Update to adult category
=> No more confirmation message but a popup to select the adult category
- Pick one
=> The patron has been updated to the adult category

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-08-14 11:58:26 +00:00
..
pages Bug 20115: Trigger "modified" when sort is changed 2018-04-04 15:45:44 -03:00
acq.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
acquisitions-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
additem.js Bug 18183: jQuery append error related to script tags in cloneItemBlock 2018-01-02 11:46:40 -03:00
admin-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
ajax.js
audio_alerts.js
auth-finder-search.js Bug 20273: (follow-up) Autocomplete use start instead of contains 2018-07-19 17:25:16 +00:00
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js Bug 16575: Irregular behaviour using window.print() followed by window.location.href 2018-07-19 16:12:56 +00:00
basketgroup.js
biblio_framework.js
cart.js Bug 19290: Browse selected bibliographic records - Staff interface 2018-02-19 16:13:30 -03:00
catalog.js Bug 20979: Fix confirm deletion popup when deleting a biblio 2018-07-12 12:18:02 +00:00
cataloging.js
categories.js Bug 20781: Set a minimum enrollemnt period 'in months' of 1 2018-05-29 13:56:00 +00:00
checkouts.js Bug 20343: Put translatable strings in strings.tt 2018-04-19 12:32:20 -03:00
circ-patron-search-results.js Bug 20221: Fix for JavaScript error during checkout patron search 2018-02-16 13:00:57 -03:00
commons.js Bug 19290: Browse selected bibliographic records - Staff interface 2018-02-19 16:13:30 -03:00
datatables.js Bug 18791: (follow up) Fix translation of copy messages 2018-04-13 13:55:22 -03:00
file-upload.js
holds.js Bug 21029: Make "Suspend until:" translatable 2018-07-06 10:13:52 +00:00
item_search_fields.js
letter.js Bug 18007: Interface updates to notices and notice previews 2018-04-16 14:07:27 -03:00
localcovers.js
marc_modification_templates.js Bug 13560: Add an 'Add' option for marc modification templates 2018-07-19 17:22:18 +00:00
marc_subfields_structure.js
members-menu.js Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
members.js Bug 19907: Fix email validation in patron edit form 2018-04-02 18:07:45 -03:00
merge-record.js
messaging-preference-form.js Bug 19641: Move patron templates to the footer 2018-02-15 13:30:23 -03:00
offlinecirc.js
onboarding.js Bug 19514: Add client-side check 2017-12-14 16:58:13 -03:00
prevent_submit.js
rotating-collections.js Bug 19656: Move rotating collections templates JS to the footer 2017-12-11 11:34:22 -03:00
serials-toolbar.js Bug 20778: (bug 19777 follow-up) Fix subscription deletion 2018-06-08 09:48:12 -04:00
showpredictionpattern.js Bug 19778: Move template JavaScript to the footer: Serials, part 4 2017-12-14 16:58:13 -03:00
sms_providers.js
staff-global.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
subscription-add.js Bug 19778: Move template JavaScript to the footer: Serials, part 4 2017-12-14 16:58:13 -03:00
table_filters.js Bug 9573: Lost items report - add KohaTable to itemlost 2018-02-17 18:32:14 -03:00
tools-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
xmlControlfield.js
z3950_search.js