From e23a9e6b13a6ffa1d052b8aea8f5981ba6f08552 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 12 Oct 2022 16:38:20 -0700 Subject: [PATCH] LP1898775: Add basket to bucket in bootstrap The bootstrap OPAC uses links, rather than menu $(doc).find('#select_basket_action').on('change', function() { if (this.options[this.selectedIndex].value && this.options[this.selectedIndex].value == "add_cart_to_bucket") { $scope.add_cart_to_record_bucket(); } }); + // Second, the bootstrap OPAC, which uses a bunch of s styled as a dropdown + $(doc).find('a[href="add_cart_to_bucket"]').on('click', function (event) { + event.preventDefault(); + $scope.add_cart_to_record_bucket(); + }); } } -- 2.11.0