Bug 16297 - Remove the use of "onclick" from OAI sets configuration template
authorOwen Leonard <oleonard@myacpl.org>
Tue, 19 Apr 2016 16:40:29 +0000 (12:40 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 15:30:34 +0000 (15:30 +0000)
commit29292c9f8deead33c07c5c46ba27e749de648e8f
treef75c67daa67baa419a69901799efa43f9a6bb4e0
parenta196dfc4f0ba674eb649c35bbc761c750f25579f
Bug 16297 - Remove the use of "onclick" from OAI sets configuration template

In order to bring the OAI sets configuration template into compliance
with coding guideline JS9, this patch changes with way some JavaScript
events are handled by moving JS handling out of the HTML markup.

To test, apply the patch and go to Administration -> OAI sets
configuration.

- Create or edit a set.
- Test the "Add description" link. Clicking it should add a
  description textarea.
- Test the "Remove" link associated with multiple description lines.
  Click them should remove the corresponding textarea.
- Test that additions and removals are saved correctly.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt