rem: else	saveQueryButton.setAttribute("disabled", "true");  return(true); 
add: } else { saveQueryButton.setAttribute("disabled", "true"); } return(true); 
context: function switchTab( aPageIndex ){	var deck = document.getElementById( "advancedDeck" );	deck.setAttribute( "index", aPageIndex );    	// decide whether to show/hide/enable/disable save search query button	if (aPageIndex != 0)	return(true);	var saveQueryButton = document.getElementById("saveQueryButton");	if (!saveQueryButton)	return(true);	var resultsTree = document.getElementById("Tree");	if( !resultsTree)	return(false);	var ds = resultsTree.database;	if (!ds)		return(false);	var	haveSearchRef = false;	var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();	if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);	if (rdf)	{		var source = rdf.GetResource( "NC:LastSearchRoot", true);		var childProperty;		var target;		// look for last search URI		childProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#ref", true);		target = ds.GetTarget(source, childProperty, true);		if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);		if (target)	target = target.Value;		if (target && target != "")		{			haveSearchRef = true;		}	}	if (haveSearchRef == true)		saveQueryButton.removeAttribute("disabled", "true");	else	saveQueryButton.setAttribute("disabled", "true");  return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6a80dfc41c74ac5b49360af43d1f736a30d98b45/search-panel.js/clean/suite/common/search/search-panel.js