[Vtigercrm-commits] [vtiger-commits] r7660 - /vtigercrm/trunk/include/js/ListView.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 29 06:31:52 EDT 2006


Author: saraj
Date: Thu Jun 29 04:31:47 2006
New Revision: 7660

Log:
Updated listview js file with an if check that gets rid of inconsistency in list view button - ahmed

Modified:
    vtigercrm/trunk/include/js/ListView.js

Modified: vtigercrm/trunk/include/js/ListView.js
==============================================================================
--- vtigercrm/trunk/include/js/ListView.js (original)
+++ vtigercrm/trunk/include/js/ListView.js Thu Jun 29 04:31:47 2006
@@ -11,7 +11,10 @@
 {
 	var select_options  =  document.getElementsByName('selected_id');
 	var x = select_options.length;
-	var viewid = document.massdelete.viewname.value;
+	if(typeof(document.massdelete.viewname) != 'undefined')
+		var viewid = document.massdelete.viewname.value;
+	else
+		var viewid ='';		
 	idstring = "";
 
 	xx = 0;
@@ -38,8 +41,12 @@
 {
 		var select_options  =  document.getElementsByName('selected_id');
 		var x = select_options.length;
-		var viewid = document.massdelete.viewname.value;
-        idstring = "";
+		if(typeof(document.massdelete.viewname) != 'undefined')
+			var viewid = document.massdelete.viewname.value;
+		else
+			var viewid ='';		
+
+		idstring = "";
 
         xx = 0;
         for(i = 0; i < x ; i++)





More information about the vtigercrm-commits mailing list