[Vtigercrm-commits] [vtiger-commits] r9404 - /vtigercrm/trunk/include/js/dtlviewajax.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Sep 11 09:05:35 EDT 2006
Author: jerrydgeorge
Date: Mon Sep 11 07:05:22 2006
New Revision: 9404
Log:
Issue in assigned user ajax edit has been fixed --Jeri
Modified:
vtigercrm/trunk/include/js/dtlviewajax.js
Modified: vtigercrm/trunk/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/trunk/include/js/dtlviewajax.js (original)
+++ vtigercrm/trunk/include/js/dtlviewajax.js Mon Sep 11 07:05:22 2006
@@ -135,7 +135,7 @@
var groupurl = "&assigned_group_name="+group_name+"&assigntype=T"
}
- }if(globaluitype == 33)
+ }else if(globaluitype == 33)
{
var txtBox= "txtbox_"+ fieldLabel;
var oMulSelect = $(txtBox);
@@ -145,8 +145,7 @@
if (oMulSelect.options[iter].selected)
r[r.length] = oMulSelect.options[iter].value;
}
- }
- else
+ }else
{
var txtBox= "txtbox_"+ fieldLabel;
}
@@ -163,7 +162,6 @@
$("vtbusy_info").style.display="inline";
var isAdmin = document.getElementById("hdtxt_IsAdmin").value;
- var tagValue = trim(document.getElementById(txtBox).value);
//overriden the tagValue based on UI Type for checkbox
if(uitype == '56')
@@ -186,8 +184,11 @@
}
}else if(uitype == '33')
{
- tagValue = r.join(" |##| ");
- }
+ tagValue = r.join(" |##| ");
+ }else
+ {
+ tagValue = trim(document.getElementById(txtBox).value);
+ }
var data = "file=DetailViewAjax&module=" + module + "&action=" + module + "Ajax&record=" + crmId+"&recordid=" + crmId ;
@@ -212,12 +213,10 @@
if(uitype == '13' || uitype == '104')
{
getObj(dtlView).innerHTML = "<a href=\"mailto:"+ tagValue+"\" target=\"_blank\">"+tagValue+" </a>";
- }
- else if(uitype == '17')
+ }else if(uitype == '17')
{
getObj(dtlView).innerHTML = "<a href=\"http://"+ tagValue+"\" target=\"_blank\">"+tagValue+" </a>";
- }
- else if(uitype == '53')
+ }else if(uitype == '53')
{
var hdObj = getObj(hdTxt);
if(typeof(document.DetailView.assigntype[0]) != 'undefined')
@@ -238,8 +237,7 @@
{
getObj(dtlView).innerHTML = "<a href=\"index.php?module=Users&action=GroupDetailView&groupId="+tagValue+"\">"+hdObj.value+" </a>";
}
- }
- else if(uitype == '56')
+ }else if(uitype == '56')
{
if(tagValue == '1')
{
More information about the vtigercrm-commits
mailing list