[Vtigercrm-commits] [vtiger-commits] r9420 - in /vtigercrm/trunk/Smarty/templates: RelatedListNew.tpl RelatedLists.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Sep 11 11:25:04 EDT 2006


Author: richie
Date: Mon Sep 11 09:24:55 2006
New Revision: 9420

Log:
Fixed the Select One Issue in Campaign Related List

Modified:
    vtigercrm/trunk/Smarty/templates/RelatedListNew.tpl
    vtigercrm/trunk/Smarty/templates/RelatedLists.tpl

Modified: vtigercrm/trunk/Smarty/templates/RelatedListNew.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedListNew.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedListNew.tpl Mon Sep 11 09:24:55 2006
@@ -52,10 +52,20 @@
 
 function loadCvList(type,id) {ldelim}
 	if(type === 'Leads')
-		$("lead_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value+'\'">';
+	{ldelim}
+		if($("lead_cv_list").value != 'None')
+		{ldelim}
+			$("lead_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value+'\'">';
+		{rdelim}
+	{rdelim}
 
 	if(type === 'Contacts')
+	{ldelim}
+		if($("cont_cv_list").value != 'None')
+		{ldelim}
 		$("contact_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value+'\'">';
+		{rdelim}
+	{rdelim}
 {rdelim}
 </script>
 

Modified: vtigercrm/trunk/Smarty/templates/RelatedLists.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedLists.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedLists.tpl Mon Sep 11 09:24:55 2006
@@ -52,10 +52,20 @@
 
 function loadCvList(type,id) {ldelim}
 	if(type === 'Leads')
-		$("lead_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value+'\'">';
+	{ldelim}
+		if($("lead_cv_list").value != 'None')
+		{ldelim}
+			$("lead_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value+'\'">';
+		{rdelim}
+	{rdelim}
 
 	if(type === 'Contacts')
-		$("contact_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value+'\'">';
+	{ldelim}
+		if($("cont_cv_list").value !='None')
+		{ldelim}
+			$("contact_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value+'\'">';
+		{rdelim}
+	{rdelim}
 {rdelim}
 </script>
 	{include file='Buttons_List1.tpl'}





More information about the vtigercrm-commits mailing list