Explorar o código

Hack to force fullCalendar scrollTime option to work as expected

Vijayakrishnan %!s(int64=3) %!d(string=hai) anos
pai
achega
b288cf0d0a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      resources/views/app/patient/appointment-calendar.blade.php

+ 5 - 0
resources/views/app/patient/appointment-calendar.blade.php

@@ -655,6 +655,11 @@
                                  }
                             });
                             this.calendar.render();
+
+                            // ugly fix/hack to force scrollTime option to work
+                            setTimeout(() => {
+                                $('.fc-timeGridWeek-button').click();
+                            }, 750);
                         },
                         afterRenderingEvents: function() {
                             let self = this;