Commit 4137f33 Kritin Vij
committed
1 parent c6f014d commit 4137f33 Copy full SHA for 4137f33
File tree 1 file changed +5
-7
lines changed
app/views/event_attendances
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -91,25 +91,23 @@ function updateEmailLinks() {
91
91
92
92
// create an email list of those people attending
93
93
var emailsAttending = [ ] ;
94
- function getAttending ( ) {
94
+ $ ( function ( ) {
95
95
attending_rows . each ( function ( key , value ) {
96
96
emailsAttending . push ( value . getAttribute ( 'data-email' ) ) ;
97
97
} ) ;
98
- }
99
- getAttending ( ) ;
98
+ } ) ;
100
99
101
100
// make the array into string and then set that as a value to the email link
102
- emailsAttending = emailsAttending . splice ( ',' ) . join ( ',' ) ;
101
+ emailsAttending = emailsAttending . join ( ',' ) ;
103
102
$ ( '#attending_email_link' ) . attr ( "href" , "mailto:" + emailsAttending ) ;
104
103
105
104
// similarly for the Attended emails
106
105
var emailsAttended = [ ] ;
107
- function getAttended ( ) {
106
+ $ ( function ( ) {
108
107
attended_rows . each ( function ( key , value ) {
109
108
emailsAttended . push ( value . getAttribute ( 'data-email' ) ) ;
110
109
} ) ;
111
- }
112
- getAttended ( ) ;
110
+ } ) ;
113
111
emailsAttended = emailsAttended . join ( ',' ) ;
114
112
$ ( '#attended_email_link' ) . attr ( "href" , "mailto:" + emailsAttended ) ;
115
113
}
You can’t perform that action at this time.
0 commit comments