Skip to content

Commit 184cafd

Browse files
authored
Allow to fetch the srf.eventcalendar.fullCalendarRefresh
[skip ci]
1 parent 1f375a1 commit 184cafd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

formats/calendar/resources/ext.srf.formats.eventcalendar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,13 @@
11101110
} );
11111111
}
11121112

1113+
// Allow to fetch the `srf.eventcalendar.fullCalendarRefresh` and trigger a click
1114+
// event to restore the fullCalendar in case the instance was part of tab (hidden
1115+
// during initialization)
1116+
$( document ).on( 'srf.eventcalendar.fullCalendarRefresh', function( event ) {
1117+
context.find( '.srf-calendarbutton-refresh' ).trigger( 'click' );
1118+
} );
1119+
11131120
// console.log( 'Data', data, 'Objects', _calendar );
11141121

11151122
} );

0 commit comments

Comments
 (0)