[Vtigercrm-commits] [vtiger-commits] r5895 - /vtigercrm/trunk/include/js/dtlviewajax.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri May 12 03:47:16 EDT 2006
Author: richie
Date: Fri May 12 01:47:12 2006
New Revision: 5895
Log:
detailview edit made on click
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 Fri May 12 01:47:12 2006
@@ -10,7 +10,6 @@
var globaldtlviewspanid = "";
var globaleditareaspanid = "";
var globaltxtboxid = "";
-var itsonview=false;
function showHide(showId, hideId)
{
@@ -20,10 +19,7 @@
function hndCancel(valuespanid,textareapanid,fieldlabel)
{
-
showHide(valuespanid,textareapanid);
- itsonview=false;
- return false;
}
function hndMouseOver(uitype,fieldLabel)
@@ -31,28 +27,10 @@
var mouseArea="";
mouseArea="mouseArea_"+ fieldLabel;
- if(itsonview)
- {
- return;
- }
-
- show("crmspanid");
globaldtlviewspanid= "dtlview_"+ fieldLabel;//valuespanid;
globaleditareaspanid="editarea_"+ fieldLabel;//textareapanid;
globaltxtboxid="txtbox_"+ fieldLabel;//textboxpanid;
- divObj = getObj('crmspanid');
- crmy = findPosY(getObj(mouseArea));
- crmx = findPosX(getObj(mouseArea));
- if(document.all)
- {
- divObj.onclick=handleEdit;
- }
- else
- {
- divObj.setAttribute('onclick','handleEdit();');
- }
- divObj.style.left=(crmx+getObj(mouseArea).offsetWidth -divObj.offsetWidth)+"px";
- divObj.style.top=crmy+"px";
+ handleEdit();
}
function handleEdit()
@@ -60,8 +38,6 @@
show(globaleditareaspanid) ;
hide(globaldtlviewspanid);
getObj(globaltxtboxid).focus();
- hide('crmspanid');
- itsonview=true;
return false;
}
@@ -92,9 +68,8 @@
var editArea = "editarea_"+ fieldLabel;
var txtBox= "txtbox_"+ fieldLabel;
var popupTxt= "popuptxt_"+ fieldLabel;
-
+
var tagValue = trim(document.getElementById(txtBox).value);
-
var data = "module=" + module + "&action=" + module + "Ajax&recordid=" + crmId ;
data = data + "&fldName=" + fieldName + "&fieldValue=" + escape(tagValue) + "&ajxaction=DETAILVIEW";
show("vtbusy_info");
@@ -151,7 +126,6 @@
getObj(dtlView).innerHTML = tagValue;
}
showHide(dtlView,editArea); //show,hide
- itsonview=false;
}
More information about the vtigercrm-commits
mailing list