[Vtigercrm-commits] [vtiger-commits] r10163 - /vtigercrm/branches/5.0.3/Smarty/templates/ListView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 9 09:14:44 EST 2007
Author: saraj
Date: Fri Feb 9 07:14:38 2007
New Revision: 10163
Log:
fix-group related issue --Minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/ListView.tpl
Modified: vtigercrm/branches/5.0.3/Smarty/templates/ListView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/ListView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/ListView.tpl Fri Feb 9 07:14:38 2007
@@ -23,7 +23,7 @@
<script language="javascript">
function checkgroup()
{ldelim}
- if(document.change_ownerform_name.user_lead_owner[1].checked)
+ if($("group_checkbox").checked)
{ldelim}
document.change_ownerform_name.lead_group_owner.style.display = "block";
document.change_ownerform_name.lead_owner.style.display = "none";
@@ -277,13 +277,15 @@
<td width="50%"><b>{$APP.LBL_TRANSFER_OWNERSHIP}</b></td>
<td width="2%"><b>:</b></td>
<td width="48%">
- <input type = "radio" name = "user_lead_owner" onclick=checkgroup(); checked>{$APP.LBL_USER}
- <input type = "radio" name = "user_lead_owner" onclick=checkgroup(); >{$APP.LBL_GROUP}<br>
- <select name="lead_owner" id="lead_owner" class="detailedViewTextBox">
+ <input type = "radio" id="user_checkbox" name="user_lead_owner" {if $CHANGE_GROUP_OWNER neq ''} onclick=checkgroup(); {/if} checked>{$APP.LBL_USER}
+ {if $CHANGE_GROUP_OWNER neq ''}
+ <input type = "radio" id="group_checkbox" name="user_lead_owner" onclick=checkgroup(); >{$APP.LBL_GROUP}<br>
+ <select name="lead_group_owner" id="lead_group_owner" class="select" style="display:none;">
+ {$CHANGE_GROUP_OWNER}
+ </select>
+ {/if}
+ <select name="lead_owner" id="lead_owner" class="select">
{$CHANGE_OWNER}
- </select>
- <select name="lead_group_owner" id="lead_group_owner" class="detailedViewTextBox" style="display:none;">
- {$CHANGE_GROUP_OWNER}
</select>
</td>
</tr>
@@ -361,7 +363,7 @@
}
else if(statusname == 'owner')
{
- if(document.change_ownerform_name.user_lead_owner[0].checked)
+ if($("user_checkbox").checked)
{
fninvsh('changeowner');
var url='&user_id='+document.getElementById('lead_owner').options[document.getElementById('lead_owner').options.selectedIndex].value;
More information about the vtigercrm-commits
mailing list