[Vtigercrm-commits] [vtiger-commits] r5520 - /vtigercrm/trunk/Smarty/templates/ListView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 19:09:58 EDT 2006


Author: saraj
Date: Thu Apr 27 17:09:54 2006
New Revision: 5520

Log:
Added the split feature to get an alert for error when deleting non permissible records in ListView - Ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/ListView.tpl

Modified: vtigercrm/trunk/Smarty/templates/ListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListView.tpl Thu Apr 27 17:09:54 2006
@@ -24,7 +24,10 @@
 function ajaxSaveResponse(response)
 {ldelim}
 	hide("status");
-	document.getElementById("ListViewContents").innerHTML=response.responseText;
+	result = response.responseText.split('&#&#&#'); 
+	document.getElementById("ListViewContents").innerHTML= result[2];
+	if(result[1] != '')
+		alert(result[1]);	
 {rdelim}
 
 function callSearch(searchtype)





More information about the vtigercrm-commits mailing list