web mailing list archives

web@odoo-community.org

Avatar

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

by Enric Tobella <notifications@github.com> - 13/07/2020 10:45:40

@etobella 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 () {

The main reason why we need to overwrite all is the variables scales. It is defined as an external variable undependant on the class, so, in order to modify it, we need to overwrite all the function 😭

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