rem: if (productfilter.options[productfilter.selectedIndex].value == '' && testgroupfilter.options[testgroupfilter.selectedIndex].value == '' && subgroupfilter.options[subgroupfilter.selectedIndex].value == '') {  showAllTests(); return; }  toggleMessage('loading','Filtering testcase list...'); filter_req = doSimpleXMLHttpRequest('manage_testcases.cgi', { searchTestcaseList: 1, product: (productfilter.options[productfilter.selectedIndex].value == '---' ? '' : productfilter.options[productfilter.selectedIndex].value), testgroup: (testgroupfilter.options[testgroupfilter.selectedIndex].value == '---' ? '' : testgroupfilter.options[testgroupfilter.selectedIndex].value), subgroup: (subgroupfilter.options[subgroupfilter.selectedIndex].value == '---' ? '' : subgroupfilter.options[subgroupfilter.selectedIndex].value), });  filter_req.addErrback(showAllTests); filter_req.addCallback(doFilterList); 
add: toggleMessage('loading','Filtering testcase list...'); filter_req = doSimpleXMLHttpRequest('manage_testcases.cgi', { searchTestcaseList: 1, product: (productfilter.options[productfilter.selectedIndex].value == '---' ? '' : productfilter.options[productfilter.selectedIndex].value), testgroup: (testgroupfilter.options[testgroupfilter.selectedIndex].value == '---' ? '' : testgroupfilter.options[testgroupfilter.selectedIndex].value), subgroup: (subgroupfilter.options[subgroupfilter.selectedIndex].value == '---' ? '' : subgroupfilter.options[subgroupfilter.selectedIndex].value), });  filter_req.addErrback(showAllTests); filter_req.addCallback(doFilterList); 
context: function filterList() {	// they just changed the selection, so cancel any pending filter actions:	if (filter_req instanceof Deferred && filter_req.fired == -1)	filter_req.cancel();	var productfilter = document.getElementById('product_filter');	var testgroupfilter = document.getElementById('testgroup_filter');	var subgroupfilter = document.getElementById('subgroup_filter');		if (productfilter.options[productfilter.selectedIndex].value == '' &&	    testgroupfilter.options[testgroupfilter.selectedIndex].value == '' &&	    subgroupfilter.options[subgroupfilter.selectedIndex].value == '') {		// nothing to do here		showAllTests();		return;	}		toggleMessage('loading','Filtering testcase list...');	filter_req = doSimpleXMLHttpRequest('manage_testcases.cgi', {	  searchTestcaseList: 1,	  product: (productfilter.options[productfilter.selectedIndex].value == '---' ?	  		'' : productfilter.options[productfilter.selectedIndex].value),	  testgroup: (testgroupfilter.options[testgroupfilter.selectedIndex].value == '---' ? 	  		'' : testgroupfilter.options[testgroupfilter.selectedIndex].value),	  subgroup: (subgroupfilter.options[subgroupfilter.selectedIndex].value == '---' ? 	  		'' : subgroupfilter.options[subgroupfilter.selectedIndex].value),	  });	// if something went wrong, just show all the tests:	filter_req.addErrback(showAllTests);	filter_req.addCallback(doFilterList);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/38cc2c83c0a981088028f4bb46905c61fc4ecda5/ManageTestcases.js/buggy/webtools/litmus/js/ManageTestcases.js