This repository was archived by the owner on Aug 21, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ $(function () {
8282 attchmentURL = attchmentURL + _ . keys ( mems . get ( '_attachments' ) ) [ 0 ]
8383 src = attchmentURL
8484 }
85- if ( config . models [ 0 ] . attributes . rows [ 0 ] . doc . type == 'nation' && mems . get ( "community" ) == 'nationbell' || config . models [ 0 ] . attributes . rows [ 0 ] . doc . type == ' community') {
86- viewtext += '<tr><td><img width="45px" height="45px" src="' + src + '"/></td><td>' + mems . get ( 'firstName' ) + ' ' + mems . get ( 'lastName' ) + '</td><td>' + roleOfMem + '</td><td><input type="checkbox" name="courseMember" value="' + mail + '">' + App . languageDict . attributes . Send_Email + '</td>'
87- } else {
88- viewtext += '<tr><td><img width="45px" height="45px" src="' + src + '"/></td><td>' + mems . get ( 'firstName' ) + ' ' + mems . get ( 'lastName' ) + '</td><td>' + roleOfMem + '</td><td></td>'
89- }
85+ viewtext += '<tr><td><img width="45px" height="45px" src="' + src + '"/></td><td>' + mems . get ( 'firstName' ) + ' ' + mems . get ( 'lastName' ) + '</td><td>' + roleOfMem + '</td><td>' + mems . get ( ' community') + '</td>' ;
86+ if ( mems . get ( "community" ) == config . models [ 0 ] . attributes . rows [ 0 ] . doc . code )
87+ viewtext += '<td><input type="checkbox" name="courseMember" value="' + mail + '">' + App . languageDict . attributes . Send_Email + '</td><td></td>' ;
88+ else
89+ viewtext += '<td></td><td></td>' ;
9090 var loggedIn = new App . Models . Member ( {
9191 "_id" : $ . cookie ( 'Member._id' )
9292 } )
@@ -183,7 +183,7 @@ $(function () {
183183 attchmentURL = attchmentURL + _ . keys ( mems . get ( '_attachments' ) ) [ 0 ]
184184 src = attchmentURL
185185 }
186- if ( config . models [ 0 ] . attributes . rows [ 0 ] . doc . type == 'nation' && mems . get ( "community" ) == 'nationbell' ) {
186+ if ( config . models [ 0 ] . attributes . rows [ 0 ] . doc . code == mems . get ( "community" ) ) {
187187 viewtext += '<tr><td><img width="45px" height="45px" src="' + src + '"/></td><td>' + mems . get ( 'firstName' ) + ' ' + mems . get ( 'lastName' ) + '</td><td>' + roleOfMem + '</td><td><input type="checkbox" name="courseMember" value="' + mail + '">' + App . languageDict . attributes . Send_Email + '</td>'
188188 } else {
189189 viewtext += '<tr><td><img width="45px" height="45px" src="' + src + '"/></td><td>' + mems . get ( 'firstName' ) + ' ' + mems . get ( 'lastName' ) + '</td><td>' + roleOfMem + '</td><td></td>'
You can’t perform that action at this time.
0 commit comments