From 134fee6c46ec2fd344887d0a347b33e84345575a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 26 May 2010 07:17:03 +0000 Subject: [PATCH] Bugfix Mailversand mit Outlook 2003 --- content/student/studentoverlay.js.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/content/student/studentoverlay.js.php b/content/student/studentoverlay.js.php index e4013dbcd..d6395bf54 100644 --- a/content/student/studentoverlay.js.php +++ b/content/student/studentoverlay.js.php @@ -4005,7 +4005,10 @@ function StudentSendMail() var col = tree.columns ? tree.columns["student-treecol-uid"] : "student-treecol-uid"; if(tree.view.getCellText(v,col).length>1) { - mailempfaenger=mailempfaenger+'variable->emailadressentrennzeichen; ?>'+tree.view.getCellText(v,col)+'@'; + if(mailempfaenger=='') + mailempfaenger=tree.view.getCellText(v,col)+'@'; + else + mailempfaenger=mailempfaenger+'variable->emailadressentrennzeichen; ?>'+tree.view.getCellText(v,col)+'@'; } else { @@ -4096,7 +4099,13 @@ function splitmailto(mails, art) loop=false; mailto=mails; } - window.location.href='mailto:?'+art+'='+mailto; + + if(art=='to') + window.location.href='mailto:'+mailto; + else + window.location.href='mailto:?'+art+'='+mailto; + + } }