From 1ed3306ac5a2a0f7923e59ddcbe19d7e4e7facb3 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 21 Aug 2023 14:41:31 -0600 Subject: [PATCH] Calendar: disable scrolling on year/month in sidemenu calendar --- calendar/js/SidemenuDate.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/calendar/js/SidemenuDate.ts b/calendar/js/SidemenuDate.ts index 5dded36a49..8bd15a8e4a 100644 --- a/calendar/js/SidemenuDate.ts +++ b/calendar/js/SidemenuDate.ts @@ -109,6 +109,16 @@ export class SidemenuDate extends Et2Date { let options = super.getOptions(); + // No scroll - remove scroll plugin + options.plugins = []; + + // Add "Ok" and "today" buttons back in, if desired + const buttons = this._buttonPlugin(); + if(buttons) + { + options.plugins.push(buttons) + } + options.allowInput = false; options.inline = true; options.dateFormat = "Y-m-dT00:00:00\\Z";