mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:39 +01:00
fix for not working to,cc,bcc selecttion when adding multiple addresses from addressbook
This commit is contained in:
parent
baf14bae10
commit
6a34604c96
@ -255,6 +255,16 @@ class uicontacts extends bocontacts
|
|||||||
*/
|
*/
|
||||||
function emailpopup($content=null,$msg=null)
|
function emailpopup($content=null,$msg=null)
|
||||||
{
|
{
|
||||||
|
switch($_POST['exec']['nm']['to']) {
|
||||||
|
case 'to':
|
||||||
|
case 'bcc':
|
||||||
|
case 'cc':
|
||||||
|
$to = $_POST['exec']['nm']['to'];
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$to = 'to';
|
||||||
|
}
|
||||||
|
|
||||||
if ($_GET['compat']) // 1.2 felamimail or old email
|
if ($_GET['compat']) // 1.2 felamimail or old email
|
||||||
{
|
{
|
||||||
$handler = "if (opener.document.doit[to].value != '')
|
$handler = "if (opener.document.doit[to].value != '')
|
||||||
@ -274,18 +284,19 @@ class uicontacts extends bocontacts
|
|||||||
|
|
||||||
function addEmail(email)
|
function addEmail(email)
|
||||||
{
|
{
|
||||||
var to = 'to';
|
var to = '$to';
|
||||||
if (document.getElementById('exec[nm][to][cc]').checked == true)
|
// this does not work, as always to is selected after page reload
|
||||||
{
|
//if (document.getElementById('exec[nm][to][cc]').checked == true)
|
||||||
to = 'cc';
|
//{
|
||||||
}
|
// to = 'cc';
|
||||||
else
|
//}
|
||||||
{
|
//else
|
||||||
if (document.getElementById('exec[nm][to][bcc]').checked == true)
|
//{
|
||||||
{
|
// if (document.getElementById('exec[nm][to][bcc]').checked == true)
|
||||||
to = 'bcc';
|
// {
|
||||||
}
|
// to = 'bcc';
|
||||||
}
|
// }
|
||||||
|
//}
|
||||||
//alert(to+': '+email);
|
//alert(to+': '+email);
|
||||||
$handler;
|
$handler;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user