web mailing list archives

web@odoo-community.org

Avatar

Re: [OCA/web] [11.0][ADD] web_view_calendar_list (#1512)

by Alexandre Díaz <notifications@github.com> - 13/07/2020 17:33:41

@Tardo commented on this pull request.


In web_view_calendar_list/static/src/js/calendar_list_renderer.js:

> +                    // compute title: in week mode, display the week number
+                    var title = mode === 'week' ? view.intervalStart.week() : view.title;
+                    self.trigger_up('viewUpdated', {
+                        mode: mode,
+                        title: title,
+                    });
+                },
+                height: 'parent',
+                unselectAuto: false,
+                locale: locale, // reset locale when fullcalendar has already been instanciated before now
+            });
+
+            this.$calendar.fullCalendar(fc_options);
+        },
+
+        _render: function () {

Maybe you can modify methods where '_render' is called and pass as argument the new "scales". "Hoisting" do the rest of the magic... :/


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.