[Vtigercrm-commits] [vtiger-commits] r5320 - /vtigercrm/trunk/include/js/ListView.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 04:56:56 EDT 2006
Author: richie
Date: Tue Apr 25 02:56:52 2006
New Revision: 5320
Log:
function added to support mass change owner in listviews
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 Tue Apr 25 02:56:52 2006
@@ -7,7 +7,48 @@
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
********************************************************************************/
+function change(obj,divid)
+{
+ x = document.massdelete.selected_id.length;
+ var viewid = document.massdelete.viewname.value;
+ idstring = "";
+ if ( x == undefined)
+ {
+
+ if (document.massdelete.selected_id.checked)
+ {
+ document.massdelete.idlist.value=document.massdelete.selected_id.value;
+ }
+ else
+ {
+ alert("Please select atleast one entity ");
+ return false;
+ }
+ }
+ else
+ {
+ xx = 0;
+ for(i = 0; i < x ; i++)
+ {
+ if(document.massdelete.selected_id[i].checked)
+ {
+ idstring = document.massdelete.selected_id[i].value +";"+idstring
+ xx++
+ }
+ }
+ if (xx != 0)
+ {
+ document.massdelete.idlist.value=idstring;
+ }
+ else
+ {
+ alert("Please select atleast one entity");
+ return false;
+ }
+ }
+ fnvshobj(obj,divid);
+}
function massDelete(module)
{
x = document.massdelete.selected_id.length;
More information about the vtigercrm-commits
mailing list