rem:  EVERY        : Every.build(days, hours, mins), ONE_RUN_ONLY : $('wd.oneRunOnly').checked, VALIDATE     : $('wd.validate')  .checked, STRUCTURE    : $('wd.structure') .checked }    data.PRIVILEGES = [];  var privilList = $('wd.privileges').getElementsByTagName('TR');  for (var i=1; i<privilList.length; i++) { var trElem    = privilList[i]; var inputList = trElem.getElementsByTagName('INPUT'); var groupData = [];   var groupID = trElem.getAttribute('id').split('.')[2];  for (var j=0; j<inputList.length; j++) if (inputList[j].checked) groupData.push(inputList[j].name);  if (groupData.length != 0) data.PRIVILEGES.push( { GROUP      : groupID, OPERATIONS : groupData }); } 
add: data.PRIVILEGES = this.getPrivileges(); data.CATEGORIES = this.getSelectedCategories(); 
context: function getData(){	var days  = $('wd.every.days') .value;	var hours = $('wd.every.hours').value;	var mins  = $('wd.every.mins') .value;		var data =	{		//--- site			NAME : $('wd.name').value,		URL  : $('wd.url') .value,			USE_ACCOUNT: $('wd.useAccount').checked,		USERNAME   : $('wd.username')  .value,		PASSWORD   : $('wd.password')  .value,			//--- options				EVERY        : Every.build(days, hours, mins),		ONE_RUN_ONLY : $('wd.oneRunOnly').checked,		VALIDATE     : $('wd.validate')  .checked,		STRUCTURE    : $('wd.structure') .checked	}		//--- retrieve privileges information		data.PRIVILEGES = [];		var privilList = $('wd.privileges').getElementsByTagName('TR');		for (var i=1; i<privilList.length; i++)	{		var trElem    = privilList[i];		var inputList = trElem.getElementsByTagName('INPUT');		var groupData = [];				//-- the string is 'wd.group.<id>'		var groupID = trElem.getAttribute('id').split('.')[2];				for (var j=0; j<inputList.length; j++)			if (inputList[j].checked)				groupData.push(inputList[j].name);						if (groupData.length != 0)			data.PRIVILEGES.push(			{				GROUP      : groupID,				OPERATIONS : groupData			});	}			return data;}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/774711041c241914e6fab3c51d9c469abad78755/view.js/buggy/web/geonetwork/scripts/harvesting/webdav/view.js