[Vtigercrm-commits] [vtiger-commits] r7410 - in /vtigercrm/trunk/include/js: dtlviewajax.js general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 22 00:33:34 EDT 2006
Author: richie
Date: Wed Jun 21 22:33:24 2006
New Revision: 7410
Log:
Ajax edit added for UserDetailView
Modified:
vtigercrm/trunk/include/js/dtlviewajax.js
vtigercrm/trunk/include/js/general.js
Modified: vtigercrm/trunk/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/trunk/include/js/dtlviewajax.js (original)
+++ vtigercrm/trunk/include/js/dtlviewajax.js Wed Jun 21 22:33:24 2006
@@ -117,6 +117,17 @@
tagValue = "0";
}
}
+ if(uitype == '156')
+ {
+ if(document.getElementById(txtBox).checked == true)
+ {
+ tagValue = "on";
+ }else
+ {
+ tagValue = "off";
+ }
+ }
+
var data = "file=DetailViewAjax&module=" + module + "&action=" + module + "Ajax&record=" + crmId+"&recordid=" + crmId ;
data = data + "&fldName=" + fieldName + "&fieldValue=" + escape(tagValue) + "&ajxaction=DETAILVIEW";
@@ -131,13 +142,13 @@
alert("Error while Editing");
}
else if(response.responseText.indexOf(":#:SUCCESS")>-1)
- {
+ {
$("vtbusy_info").style.display="none";
- }
- }
- }
+ }
+ }
+ }
);
- if(uitype == '13')
+ if(uitype == '13' || uitype == '104')
{
getObj(dtlView).innerHTML = "<a href=\"mailto:"+ tagValue+"\" target=\"_blank\">"+tagValue+" </a>";
}
@@ -166,8 +177,10 @@
getObj(dtlView).innerHTML = "";
}
- }
-
+ }else if(uitype == 116)
+ {
+ getObj(dtlView).innerHTML = document.getElementById(txtBox).options[document.getElementById(txtBox).selectedIndex].text;
+ }
else if(getObj(popupTxt))
{
var popObj = getObj(popupTxt);
@@ -226,8 +239,7 @@
{
getObj(dtlView).innerHTML = popObj.value;
}
- }
- else
+ }else
{
getObj(dtlView).innerHTML = tagValue;
}
Modified: vtigercrm/trunk/include/js/general.js
==============================================================================
--- vtigercrm/trunk/include/js/general.js (original)
+++ vtigercrm/trunk/include/js/general.js Wed Jun 21 22:33:24 2006
@@ -1076,6 +1076,26 @@
getObj("assign_team").style.display="block"
}
}
+//to display type of address for google map
+function showLocateMapMenu()
+ {
+ getObj("dropDownMenu").style.display="block"
+ getObj("dropDownMenu").style.left=findPosX(getObj("locateMap"))
+ getObj("dropDownMenu").style.top=findPosY(getObj("locateMap"))+getObj("locateMap").offsetHeight
+ }
+
+
+function hideLocateMapMenu(ev)
+ {
+ if (browser_ie)
+ currElement=window.event.srcElement
+ else if (browser_nn4 || browser_nn6)
+ currElement=ev.target
+
+ if (currElement.id!="locateMap")
+ if (getObj("dropDownMenu").style.display=="block")
+ getObj("dropDownMenu").style.display="none"
+ }
/*
* javascript function to display the div tag
* @param divId :: div tag ID
More information about the vtigercrm-commits
mailing list