]> git.koha-community.org Git - koha.git/commit
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)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 15 Jun 2016 05:32:18 +0000 (07:32 +0200)
commit10733c39399d4db48bd5a73a9c4a195531751875
tree9e29adb95b8ebdb62b7a951b3ea8382ee7fdd92c
parent92c08a6a4e177622a4513fa34c81dfcbec20ec57
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.

Tested on top of Bug 13041 and Bug 16386, works as expected, however see
Bug 16458
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit fdf4101fb17d8f45487a9ba6ba248e8edf245cf6)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt
koha-tmpl/intranet-tmpl/prog/js/members.js