[Vtigercrm-commits] [vtiger-commits] r9486 - /vtigercrm/trunk/modules/Accounts/Account.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Sep 13 07:25:59 EDT 2006
Author: richie
Date: Wed Sep 13 05:25:48 2006
New Revision: 9486
Log:
Google Map issues fixed on change of label --By Minnie
Modified:
vtigercrm/trunk/modules/Accounts/Account.js
Modified: vtigercrm/trunk/modules/Accounts/Account.js
==============================================================================
--- vtigercrm/trunk/modules/Accounts/Account.js (original)
+++ vtigercrm/trunk/modules/Accounts/Account.js Wed Sep 13 05:25:48 2006
@@ -85,21 +85,33 @@
var mapParameter = '';
if (addressType == 'Main')
{
- mapParameter = document.getElementById('dtlview_Billing Address').innerHTML+' '
- +document.getElementById("dtlview_Billing Po Box").innerHTML+' '
- +document.getElementById("dtlview_Billing City").innerHTML+' '
- +document.getElementById("dtlview_Billing State").innerHTML+' '
- +document.getElementById("dtlview_Billing Country").innerHTML+' '
- +document.getElementById("dtlview_Billing Code").innerHTML
+ if(fieldname.indexOf('bill_street') > -1)
+ mapParameter = document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_street')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_pobox') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_pobox')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_city') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_city')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_state') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_state')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_country') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_country')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_code') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('bill_code')]).innerHTML+' ';
}
else if (addressType == 'Other')
{
- mapParameter = document.getElementById("dtlview_Shipping Address").innerHTML+' '
- +document.getElementById("dtlview_Shipping Po Box").innerHTML+' '
- +document.getElementById("dtlview_Shipping City").innerHTML+' '
- +document.getElementById("dtlview_Shipping State").innerHTML+' '
- +document.getElementById("dtlview_Shipping Country").innerHTML+' '
- +document.getElementById("dtlview_Shipping Code").innerHTML
+ if(fieldname.indexOf('ship_street') > -1)
+ mapParameter = document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_street')]).innerHTML+' ';
+ if(fieldname.indexOf('ship_pobox') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_pobox')]).innerHTML+' ';
+ if(fieldname.indexOf('ship_city') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_city')]).innerHTML+' ';
+ if(fieldname.indexOf('ship_state') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_state')]).innerHTML+' ';
+ if(fieldname.indexOf('ship_country') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_country')]).innerHTML+' ';
+ if(fieldname.indexOf('bill_code') > -1) mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('ship_code')]).innerHTML+' ';
+
}
window.open('http://maps.google.com/maps?q='+mapParameter,'goolemap','height=450,width=700,resizable=no,titlebar,location,top=200,left=250');
}
More information about the vtigercrm-commits
mailing list