[Vtigercrm-commits] [vtiger-commits] r9488 - /vtigercrm/trunk/modules/Leads/Lead.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Sep 13 07:30:00 EDT 2006
Author: richie
Date: Wed Sep 13 05:29:38 2006
New Revision: 9488
Log:
Google Map issues fixed on change of label --By Minnie
Modified:
vtigercrm/trunk/modules/Leads/Lead.js
Modified: vtigercrm/trunk/modules/Leads/Lead.js
==============================================================================
--- vtigercrm/trunk/modules/Leads/Lead.js (original)
+++ vtigercrm/trunk/modules/Leads/Lead.js Wed Sep 13 05:29:38 2006
@@ -98,12 +98,18 @@
var mapParameter = '';
if (addressType == 'Main')
{
- mapParameter = document.getElementById("dtlview_Street").innerHTML+' '
- +document.getElementById("dtlview_Po Box").innerHTML+' '
- +document.getElementById("dtlview_City").innerHTML+' '
- +document.getElementById("dtlview_State").innerHTML+' '
- +document.getElementById("dtlview_Country").innerHTML+' '
- +document.getElementById("dtlview_Postal Code").innerHTML
+ if(fieldname.indexOf('lane') > -1)
+ mapParameter = document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('lane')]).innerHTML+' ';
+ if(fieldname.indexOf('pobox') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('pobox')]).innerHTML+' ';
+ if(fieldname.indexOf('city') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('city')]).innerHTML+' ';
+ if(fieldname.indexOf('state') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('state')]).innerHTML+' ';
+ if(fieldname.indexOf('country') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('country')]).innerHTML+' ';
+ if(fieldname.indexOf('code') > -1)
+ mapParameter = mapParameter + document.getElementById("dtlview_"+fieldlabel[fieldname.indexOf('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