From 9a8787c3da286676252b9b97dd2f4896cbc611cc Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 26 Aug 2026 10:37:35 -0400 Subject: [PATCH] Moved calendar JavaScript inclusion from view hook to the calendar view --- app/views/common/_calendar.html.erb | 2 ++ lib/redmine_qbo_calendar/hooks/view_hook_listener.rb | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index d97166a..c40bcc2 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -1,3 +1,5 @@ +<%= javascript_include_tag("calendar", plugin: :redmine_qbo_calendar) %> + <% # Check if toggles are active via query params only_appointments = params[:only_appointments] == '1' diff --git a/lib/redmine_qbo_calendar/hooks/view_hook_listener.rb b/lib/redmine_qbo_calendar/hooks/view_hook_listener.rb index a7eeca4..c7d64fc 100644 --- a/lib/redmine_qbo_calendar/hooks/view_hook_listener.rb +++ b/lib/redmine_qbo_calendar/hooks/view_hook_listener.rb @@ -17,7 +17,6 @@ module RedmineQboCalendar def view_layouts_base_html_head(context = {}) safe_join([ javascript_include_tag("customer_appointments", plugin: :redmine_qbo_calendar), - javascript_include_tag("calendar", plugin: :redmine_qbo_calendar), stylesheet_link_tag('customer_appointments', plugin: :redmine_qbo_calendar), javascript_include_tag('https://kit.fontawesome.com/4be4394b21.js', crossorigin: 'anonymous') ])