@@ -4,7 +4,7 @@ $(document).ready(function() {
44
55 filterClubAnnouncements ( ) ;
66
7- $ ( ".club-announcements-header" ) . click ( function ( ) {
7+ $ ( ".club-announcements-header" ) . on ( "click" , function ( ) {
88 let content = $ ( ".club-announcements-content" ) ;
99 if ( ! content . is ( ":visible" ) ) { // Avoid FOUC
1010 content . show ( ) ;
@@ -15,24 +15,24 @@ $(document).ready(function() {
1515 $ ( ".club-announcements-toggle-icon" ) . toggleClass ( "fa-chevron-down fa-chevron-up" ) ;
1616 } ) ;
1717
18- $ ( ".announcement[data-id] h3" ) . click ( function ( e ) {
18+ $ ( ".announcement[data-id] h3" ) . on ( "click" , function ( e ) {
1919 if ( e . target !== this ) return ;
2020 var btn = $ ( ".announcement-toggle" , $ ( this ) ) ;
2121 announcementToggle . call ( btn ) ;
2222 } ) ;
2323
24- $ ( ".announcement[data-id] h3 .announcement-toggle" ) . click ( function ( e ) {
24+ $ ( ".announcement[data-id] h3 .announcement-toggle" ) . on ( "click" , function ( e ) {
2525 e . preventDefault ( ) ;
2626 announcementToggle . call ( $ ( this ) ) ;
2727 } ) ;
2828
29- $ ( ".announcement[data-id] h3 .dashboard-item-icon" ) . click ( function ( e ) {
29+ $ ( ".announcement[data-id] h3 .dashboard-item-icon" ) . on ( "click" , function ( e ) {
3030 e . preventDefault ( ) ;
3131 var btn = $ ( ".announcement-toggle" , $ ( this ) . parent ( ) ) ;
3232 announcementToggle . call ( btn ) ;
3333 } ) ;
3434
35- $ ( window ) . resize ( function ( ) { setTimeout ( updatePartiallyHidden , 0 ) ; } ) ;
35+ $ ( window ) . on ( "resize" , function ( ) { setTimeout ( updatePartiallyHidden , 0 ) ; } ) ;
3636
3737 $ ( "div[data-placeholder]" ) . on ( "keydown keypress input" , function ( ) {
3838 if ( this . textContent ) {
0 commit comments