Skip to content
This repository was archived by the owner on Aug 21, 2018. It is now read-only.

Commit 1623372

Browse files
committed
disable email
1 parent 4fea9a1 commit 1623372

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/MyApp/app/views/CourseMembers.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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>'

0 commit comments

Comments
 (0)