Bug 16450 - Remove the use of "onclick" from guarantor search template
authorOwen Leonard <oleonard@myacpl.org>
Wed, 4 May 2016 13:34:46 +0000 (09:34 -0400)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 17 Aug 2016 14:38:26 +0000 (16:38 +0200)
commita85aea7a61c0ee87c386c28cca0ee3ce2b2ce4c3
tree9511ab0fe3dbd364ac013f42cf489469875c56e6
parentff06964fd2b79c9a49c813f49f2f8a0afad25868
Bug 16450 - Remove the use of "onclick" from guarantor search template

This patch updates the guarantor search template so that event
definition is done in the script rather than in an onclick attribute.

This patch also increases the size of the popup window to help prevent
the need for horizontal scrolling and adds Bootstrap style to the
"select" button.

To test, apply the patch and clear your browser cache if necessary.

- Go to Patrons and add a patron with a "child" category type.
- In the "Guarantor information" section, click the "Set to patron"
  button.
- In the pop-up window, search for a patron.
- Click the "Select" button next to a patron.
- The window should close, and the patron you selected should now appear
  as the guarantor. The guarantor's address information should be added
  to the "Main address" section.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js
koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt