From 2a7b7d9376c0b915d46a11b299e101b97d5ad8b6 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 4 Dec 2013 09:52:59 +0000 Subject: [PATCH] display all Adresses popup --- mail/js/app.js | 21 +++++++++++++-- mail/templates/default/app.css | 5 ++++ mail/templates/default/displayAllAdresses.xet | 27 ++++++++++--------- 3 files changed, 39 insertions(+), 14 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 7ca2a999c5..3516d3afca 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -547,17 +547,34 @@ app.classes.mail = AppJS.extend( mail_showAllAddresses: function(_id) { var dataElem = {data:{subject:"",fromaddress:"",toaddress:"",additionaltoaddress:"",ccaddress:"",date:"",subject:""}}; dataElem = egw.dataGetUIDdata(_id); - console.log(_id,dataElem); + //console.log(_id,dataElem); var buttons = [ {text: this.egw.lang("Close"), id:"close"} ]; + var allAddresses = [{type:this.egw.lang('from'),address:dataElem.data.fromaddress}]; + allAddresses.push({type:this.egw.lang('to'),address:dataElem.data.toaddress}) + var parsedTo = []; + if (dataElem.data.additionaltoaddress.length>0) parsedTo=JSON.parse(dataElem.data.additionaltoaddress); +//console.log(_id,parsedTo); + for (i=0;i0) parsedCC=JSON.parse(dataElem.data.ccaddress); +//console.log(_id,parsedCC); + for (i=0;i