@@ -, +, @@ - 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. --- koha-tmpl/intranet-tmpl/prog/js/members-menu.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js +++ a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js @@ -57,9 +57,13 @@ $(document).ready(function(){ $(".btn-group").removeClass("open"); return false; }); - $("#updatechild").click(function(){ - update_child(); - $(".btn-group").removeClass("open"); + $("#updatechild").click(function(e){ + if( $(this).data("toggle") == "tooltip"){ // Disabled menu option has tooltip attribute + e.preventDefault(); + } else { + update_child(); + $(".btn-group").removeClass("open"); + } }); } --