From 7ac15d6858c467088e55defeb24d33ccbe75b3b9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 1 Sep 2020 11:27:43 -0400 Subject: [PATCH] Restore global borrowernumber var --- CHANGELOG.md | 4 ++++ Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c77447b..17dd4b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.14] - 2020-09-01 +## Changed +- Fix bug caused by missing js variable + ## [1.0.14] - 2020-08-31 ## Changed - Add 'loading' modal to OPAC while data is fetched for display diff --git a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js index 5eb31cb..c1d63c8 100644 --- a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js +++ b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js @@ -6,8 +6,10 @@ let policies; let existingPickupMomentsByLibrary = {}; let policiesByLibrary = {}; let enable_patron_scheduled_pickup = false; +let borrowernumber; $(document).ready(function() { + borrowernumber = $(".loggedinusername").data('borrowernumber'); $("#menu ul li:first").after($("
  • your curbside pickups
  • ")); $('body').on('change', '#datepicker', function() {