@@ -, +, @@ basket template - Test the "Managed by: Add user" button and verify that it triggers a popup where you can search for patrons. - Select two or more patrons to be managers for the basket. - Close the search windows and confirm that your choices appear on the basket page. - Click "Delete user" next to one of the patrons. The patron should be removed. - Click "Save changes" and verify that your choices are correctly saved. - Click "Delete user" next to one of the remaining patrons. The patron should be removed. - Click "Save changes" and verify that the patron stays deleted. - In the list of orders, click the "Transfer" link and confirm that the correct pop-up window is triggered. - Test the "Delete this basket" button in the toolbar. A modal window should be triggered. - In a basket with orders: - The "Delete basket and orders" button should do what it says, leaving associated bibliographic records intact. - The "Delete basket, orders, and records" button should do what it says, deleting any bibliographic records associated with orders. - In a basket with no orders: - The "Delete basket" button should work correctly. - Test the "Create edifact order" button. - Click "Send EDI order" on the resulting page. - In the resulting dialog, "Are you sure you want to generate an edifact order," verify that both the "Yes" and "No" options work correctly. --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 80 ++++++++++++++------ 1 file changed, 58 insertions(+), 22 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -33,6 +33,21 @@ $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML); }); [% END %] + + $("body").on("click", ".del_user", function(e){ + e.preventDefault(); + del_user( $(this).data("borrowernumber") ); + }); + + $("#add_user").on("click",function(e){ + e.preventDefault(); + UserSearchPopup(); + }); + + $(".transfer_order").on("click",function(e){ + e.preventDefault(); + transfer_order_popup( $(this).data("ordernumber")); + }); }); //]]> @@ -41,10 +56,6 @@