FAS BCC-Mailversand mit ctrlKey

Wenn im FAS mit rechter Maustaste bei "E-Mail senden intern" die
Strg-Taste gedrückt wird, werden die Mails mit BCC verschickt.
This commit is contained in:
kindlm
2017-09-13 14:04:04 +02:00
parent a294a44b2c
commit 6c920c9e3e
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ else
<popupset>
<menupopup id="student-tree-popup" onpopupshown="">
<menuitem label="Student aus dieser Gruppe entfernen" oncommand="StudentGruppeDel();" id="student-tree-popup-gruppedel" hidden="false"/>
<menuitem label="EMail senden (intern)" oncommand="StudentSendMail();" id="student-tree-popup-mail" hidden="false"/>
<menuitem label="EMail senden (intern)" oncommand="StudentSendMail(event);" id="student-tree-popup-mail" hidden="false" tooltiptext="STRG-Taste fuer BCC" />
<menuitem label="EMail senden (privat)" oncommand="StudentSendMailPrivat();" id="student-tree-popup-mailprivat" hidden="false"/>
<menuseparator />
<menuitem label="Personendetails anzeigen" oncommand="StudentShowPersonendetails();" id="student-tree-popup-personendetails" hidden="false"/>
+7 -2
View File
@@ -4987,7 +4987,7 @@ function StudentSearchFieldKeyPress(event)
// ****
// * Email an die markierten Studenten versenden
// ****
function StudentSendMail()
function StudentSendMail(event)
{
mailempfaenger='';
var tree=document.getElementById('student-tree');
@@ -5018,7 +5018,12 @@ function StudentSendMail()
if(anzfault!=0)
alert(anzfault+' Student(en) konnten nicht hinzugefuegt werden weil keine UID eingetragen ist!');
if(mailempfaenger!='')
splitmailto(mailempfaenger,'to');
{
if (event.ctrlKey)
splitmailto(mailempfaenger,'bcc');
else
splitmailto(mailempfaenger,'to');
}
}
// ****