Changeset 72 for trunk/expressoMail1_2/js/InfoContact.js
- Timestamp:
- 09/24/07 10:22:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/InfoContact.js
r63 r72 54 54 } 55 55 56 emInfoContact.prototype.connectVoip = function (phoneUser, typePhone){ 57 var handler_connectVoip = function(data){ 58 if(!data) { 59 alert(get_lang("Error contacting VoIP server.")); 60 } 61 else{ 62 alert(get_lang("Requesting a VoIP call")+":\n"+data); 63 } 64 } 65 cExecute ("$this.functions.callVoipConnect&to="+phoneUser+"&typePhone="+typePhone, handler_connectVoip); 66 } 67 56 68 emInfoContact.prototype.show = function (data){ 57 69 var _this = this; … … 72 84 cn = cn.toString().substring(0,30) + "..."; 73 85 86 var phoneUser = data.telefone; 87 if(preferences.voip_enabled && phoneUser) { 88 phoneUser = "<a title=\""+get_lang("Call to Comercial Number")+"\" href=\"#\" onclick=\"InfoContact.connectVoip('"+phoneUser+"', 'com')\">"+phoneUser+"</a>"; 89 if(data.mobile){ 90 phoneUser += " / <a title=\""+get_lang("Call to Mobile Number")+"\" href=\"#\" onclick=\"InfoContact.connectVoip('"+data.mobile+"', 'mob')\">"+data.mobile+"</a>"; 91 } 92 } 74 93 75 94 Element("card_cc_td").innerHTML = "<table cellpadding=0 cellspacing=0 border=0 height='100%' width='100%'><tr><td width='70' height='93' style='padding-top:5px;padding-left:6px' align='center' valign='center'>"+ … … 77 96 "<br><img align='center' src='templates/default/images/"+(data.type)+"_catalog.png'><font size=1 color=BLACK> <b>"+get_lang("Sender's Information")+"</b></font>"+ 78 97 _this.verifyIM(data.uid,data.email)+ 79 "<br><img align='center' src='templates/default/images/phone.gif'> <font size=1 color=BLACK>"+( data.telefone ? data.telefone: get_lang("None") )+"</font>"+98 "<br><img align='center' src='templates/default/images/phone.gif'> <font size=1 color=BLACK>"+(phoneUser ? phoneUser : get_lang("None") )+"</font>"+ 80 99 "</td></tr><tr><td valign='top' align='center' colspan='2'>"+ 81 100 "<font size=1 color=BLACK>"+cn+"</font>"+
Note: See TracChangeset
for help on using the changeset viewer.