<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Shouldn't the line:<br>
<br>
<span style="font-size: 10pt; font-family: Arial;"> if(type ===
'Contacts' || $("cont_cv_list").value != 'None')<br>
<br>
<br>
be<br>
<br>
</span><span style="font-size: 10pt; font-family: Arial;"> if(type ===
'Contacts' && $("cont_cv_list").value != 'None')</span><br>
<br>
Changed || for &&<br>
<br>
Best place for this kind of contribution is to open a trac ticket.<br>
<br>
Thanks for sharing.<br>
Joe<br>
TSolucio<br>
<br>
Paproth, Stefan escribió:
<blockquote
cite="mid:07D774903820B1498F8F22C3B5468F2D01426518@mitsubishi.4com.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.5848" name="GENERATOR">
<div><span style="font-size: 12pt;" lang="EN-GB"><font face="Arial"><font
size="2">Hi there,<o:p></o:p></font></font></span></div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;" lang="EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><font color="#000000"><span
style="font-size: 10pt; color: navy; font-family: Arial;" lang="EN-GB">I
have the </span><span style="font-size: 10pt; font-family: Arial;"
lang="EN-GB">following problem:</span><span lang="EN-GB"><o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font color="#000000"><span
style="font-size: 10pt; color: navy; font-family: Arial;" lang="EN-GB">I’ve
disabled the</span><span style="font-size: 10pt; font-family: Arial;"
lang="EN-GB"> modul<span style="color: navy;">e</span> "leads"<span
style="color: navy;">. </span> <span style="color: navy;">When
selecting a campaign (</span> <span style="color: navy;">“Marketing”-></span>"Campaigns"<span
style="color: navy;">),choosing</span> "More Informations"<span
style="color: navy;"> and then trying to load a list by clicking on
the button “Load List” the following JavaScript Error occurs.:<o:p></o:p></span></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font face="Arial"><font size="2"><span
class="objectboxobjectbox-errormessagehastwistyhasbreakswitchopened"><span
style="font-size: 12pt;" lang="EN-GB">$("lead_cv_list") is undefined</span></span><span
style="font-size: 10pt; color: navy; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></font></font></p>
<p class="MsoNormal"><span
style="font-size: 10pt; color: navy; font-family: Arial;" lang="EN-GB"><o:p><font
color="#000000"> </font></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: Arial;" lang="EN-GB">The attached
patch <font color="#000000"><span style="color: navy;">should</span>
fix the problem<span style="color: navy;">. Could you integrate the
patch into the next vtiger release?</span></font></span><span
lang="EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;" lang="EN-GB"><font
face="Arial"><font size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: Arial;">best regards <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><font
color="#000000">Stefan<o:p></o:p></font></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"> <o:p></o:p></font></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: Arial;">File can be found under
"Smarty/templates"</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: Arial;">--- RelatedLists.tpl_BA
2009-08-25 14:44:55.000000000 +0200<br>
+++ RelatedLists.tpl 2009-08-25 14:47:00.000000000 +0200<br>
@@ -52,11 +52,9 @@<br>
<br>
function loadCvList(type,id)<br>
{ldelim}<br>
- if($("lead_cv_list").value != 'None' ||
$("cont_cv_list").value != 'None')<br>
- {ldelim}<br>
- $("status").style.display="inline";<br>
- if(type === 'Leads')<br>
+ if(type === 'Leads' && $("lead_cv_list").value
!= 'None')<br>
{ldelim}<br>
+ $("status").style.display="inline";<br>
new Ajax.Request(<br>
'index.php',<br>
{ldelim}queue: {ldelim}position: 'end', scope:
'command'{rdelim},<br>
@@ -70,8 +68,9 @@<br>
);<br>
{rdelim}<br>
<br>
- if(type === 'Contacts')<br>
+ if(type === 'Contacts' || $("cont_cv_list").value !=
'None')<br>
{ldelim}<br>
+ $("status").style.display="inline";<br>
new Ajax.Request(<br>
'index.php',<br>
{ldelim}queue: {ldelim}position: 'end', scope:
'command'{rdelim},<br>
@@ -84,7 +83,6 @@<br>
{rdelim}<br>
);<br>
{rdelim}<br>
- {rdelim}<br>
{rdelim}<br>
</script><br>
{include file='Buttons_List1.tpl'}</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 12pt;"><font face="Arial"><font
size="2"> <o:p></o:p></font></font></span></p>
</div>
<div> </div>
<div align="left"> </div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Reach hundreds of potential candidates - <a class="moz-txt-link-freetext" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a> </pre>
</blockquote>
<br>
</body>
</html>