Bug 21091: Move add item template JavaScript to a separate file
authorOwen Leonard <oleonard@myacpl.org>
Wed, 28 Nov 2018 17:51:10 +0000 (17:51 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 11 Mar 2019 11:57:03 +0000 (11:57 +0000)
commit1253975389975a8ff11a9bb2ef84582aeb6bd08b
treebcdb2682a4f9efcb564429cb27dcb89d5cae241e
parent0adbf3fc326a103fd819f0853c3a64028da70e81
Bug 21091: Move add item template JavaScript to a separate file

This patch moves the JavaScript in the add item template to separate
files: 1 JS file and 1 include file containing translatable strings.

While moving the JS to cataloging_additem.js I have made some changes to
quiet ESLint warnings (spacing, variable definition).

To test, apply the patch and open the add item page for an existing
record. Test the various JS-driven functionalities:

- Table sorting
- Table column configuration
- Table searching
- Table inline edit/delete links (click anywhere in the table row)
- Add multiple item form show/hide
- Add multiple item warning when adding 100+ items

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

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/str/cataloging_additem.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js [new file with mode: 0644]