Moved calendar JavaScript inclusion from view hook to the calendar view

This commit is contained in:
ricky committed 2026-08-26 10:37:35 -04:00
1 parent 2acbbd343a
commit 9a8787c3da
2 files changed
+2 -1

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
<%= javascript_include_tag("calendar", plugin: :redmine_qbo_calendar) %>
<% <%
# Check if toggles are active via query params # Check if toggles are active via query params
only_appointments = params[:only_appointments] == '1' only_appointments = params[:only_appointments] == '1'
@@ -17,7 +17,6 @@ module RedmineQboCalendar
def view_layouts_base_html_head(context = {}) def view_layouts_base_html_head(context = {})
safe_join([ safe_join([
javascript_include_tag("customer_appointments", plugin: :redmine_qbo_calendar), 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), stylesheet_link_tag('customer_appointments', plugin: :redmine_qbo_calendar),
javascript_include_tag('https://kit.fontawesome.com/4be4394b21.js', crossorigin: 'anonymous') javascript_include_tag('https://kit.fontawesome.com/4be4394b21.js', crossorigin: 'anonymous')
]) ])