[Vtigercrm-commits] [vtiger-commits] r4326 - in /vtigercrm/trunk: Smarty/templates/DetailView.tpl include/js/dtlviewajax.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 05:38:32 EST 2006


Author: saraj
Date: Mon Mar 20 03:38:26 2006
New Revision: 4326

Log:
adding tag made in a div

Modified:
    vtigercrm/trunk/Smarty/templates/DetailView.tpl
    vtigercrm/trunk/include/js/dtlviewajax.js

Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Mon Mar 20 03:38:26 2006
@@ -97,7 +97,7 @@
 		
 		<table align="center" border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td>		
 		 <span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} -  {$SINGLE_MOD} Information</span>&nbsp;&nbsp;<span id="vtbusy_info" style="display:none;"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span><td><td>&nbsp;</td></tr>
-		 <tr><td>{$UPDATEINFO}</td><td align="right" width="400" nowrap>&nbsp;{$APP.LBL_TAG_FIELDS} <input class="textbox"  type="text" id="txtbox_tagfields" name="textbox_First Name" value=""></input>&nbsp;&nbsp;<input name="button_tagfileds" type="button" class="small" value="Tag it" onclick="SaveTag('txtbox_tagfields','{$ID}','{$MODULE}')"/></td></tr>		 
+		 <tr><td>{$UPDATEINFO}</td><td align="right" width="400" nowrap><a href="#" onClick="show('tagdiv')">+addtag</a><div id="tagdiv" style="display:none";>{$APP.LBL_TAG_FIELDS} <input class="textbox"  type="text" id="txtbox_tagfields" name="textbox_First Name" value=""></input>&nbsp;&nbsp;<input name="button_tagfileds" type="button" class="small" value="Tag it" onclick="SaveTag('txtbox_tagfields','{$ID}','{$MODULE}')"/><input name="close" type="button" class="small" value="Close" onClick="hide('tagdiv')"></div></td></tr>		 
 		 <hr noshade size=1>
 		
 		<!-- Account details tabs -->
@@ -468,9 +468,9 @@
 ajaxObj.process("index.php?",data);
 function ajaxTagCloudResp(response)
 {ldelim}
-	
 	var item = response.responseText;
 	getObj('tagfields').innerHTML = item;
+	document.getElementById(txtBox).value ='';	
 	
 {rdelim}
 </script>

Modified: vtigercrm/trunk/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/trunk/include/js/dtlviewajax.js (original)
+++ vtigercrm/trunk/include/js/dtlviewajax.js Mon Mar 20 03:38:26 2006
@@ -179,6 +179,7 @@
 function SaveTag(txtBox,crmId,module)
 {
 	var tagValue = document.getElementById(txtBox).value;
+	document.getElementById(txtBox).value ='';
     var data = "module=" + module + "&action=" + module + "Ajax&recordid=" + crmId + "&ajxaction=SAVETAG&tagfields=" +tagValue;
     
 	var ajaxObj = new Ajax(dtlViewAjaxTagResponse);





More information about the vtigercrm-commits mailing list