[Koha-bugs] [Bug 28928] Minor follow-ups to Bug 28376 - Flatpickr introduction

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 31 14:17:08 CEST 2021


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 124275
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124275&action=edit
Bug 28928: Minor follow-ups to Bug 28376 - Flatpickr introduction

This patch corrects three errors in the original Flatpickr introduction
patch:

- Missing document.ready() in borrowers_stats.tt.
- Redundant calendarFirstDayOfWeek setting in caregories.js
- Missing preventDefault() in calendar.inc

The first two issues don't appear to cause any malfunction but are best
practices. The third issue can cause the page to scroll unexpectedly.

To reproduce this bug, go to (for instance) Administration -> Patron
categories -> New category.

 - If necessary, narrow the height of your browser window so that there
   is a vertical scrollbar.
 - Scroll down the page so that the "Until date" field is at the top.
 - Click the "X" next to the field.
 - The page will scroll to the top.

Apply the patch and test again. The page jump should not occur.

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


More information about the Koha-bugs mailing list