[Koha-bugs] [Bug 19641] Move patron templates JavaScript to the footer

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 7 17:37:14 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19641

--- Comment #20 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 71292
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=71292&action=edit
Bug 19641: (Follow-up) Fix update child menu option

This follow-up corrects handling of clicks on the "Update child" menu
option when the patron is an adult. Previously the click handler was
conditionally added via template markup. This patch modifies it to use
the data-tooltip attribute as an indicator that the option is disabled.

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

- Open an adult patron's record for viewing.
- Choose More -> Update child from the toolbar menu.
- The menu item should be disabled, and should show a tooltip.
- Clicking the menu item should do nothing.

- Open a child patron's record for viewing.
- Choose More -> Update child from the toolbar menu.
- The patron should be updated to an adult category.

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

https://bugs.koha-community.org/show_bug.cgi?id=19682

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list