File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 2
2
const { __ , _x, _n, _nx } = wp . i18n ;
3
3
4
4
'use strict' ;
5
- $ ( function ( ) {
6
- mc_display_usertime ( ) ;
7
- const calendar = document . querySelectorAll ( '.mc-main, .mc-event-list' ) ;
8
- if ( calendar ) {
9
- calendar . forEach ( ( el ) => {
10
- let targetId = el . getAttribute ( 'id' ) ;
11
- mc_build_toggles ( targetId ) ;
12
- el . classList . remove ( 'mcjs' ) ;
13
- } ) ;
14
- }
15
- } ) ;
5
+ mc_display_usertime ( ) ;
6
+ const calendar = document . querySelectorAll ( '.mc-main, .mc-event-list' ) ;
7
+ if ( calendar ) {
8
+ calendar . forEach ( ( el ) => {
9
+ let targetId = el . getAttribute ( 'id' ) ;
10
+ mc_build_toggles ( targetId ) ;
11
+ el . classList . remove ( 'mcjs' ) ;
12
+ } ) ;
13
+ }
16
14
17
15
const loadmore = document . querySelectorAll ( '.mc-loader' ) ;
18
16
if ( loadmore ) {
286
284
let refText = $ ( '#mc_head_' + ref ) . text ( ) ;
287
285
wp . a11y . speak ( refText ) ;
288
286
mc_display_usertime ( ) ;
289
- mc_build_toggles ( targetId ) ;
287
+ mc_build_toggles ( ref ) ;
290
288
my_calendar_table_aria ( ) ;
291
289
} ) ;
292
290
}
426
424
}
427
425
}
428
426
my_calendar_table_aria ( ) ;
429
-
427
+
430
428
} ( jQuery ) ) ;
You can’t perform that action at this time.
0 commit comments