diff --git a/xpfe/components/search/datasets/category.rdf b/xpfe/components/search/datasets/category.rdf index f994d95af270..7ce3df6e6c32 100755 --- a/xpfe/components/search/datasets/category.rdf +++ b/xpfe/components/search/datasets/category.rdf @@ -20,7 +20,17 @@ - Contributor(s): Robert John Churchill (rjc@netscape.com) --> - + + + + + + +] +> + @@ -32,23 +42,23 @@ - Jobs + &search.category.jobs; - Music - Artist + &search.category.music; - Shareware + &search.category.shareware; - Tech News + &search.category.technews; - Web + &search.category.web; @@ -58,64 +68,26 @@ - - - - + + + + - + - + - + - + - - - - - - - AOL.COM - - - - CompuServe - - - - ICQ - - - - Netscape - - - - Jobs - - - - Music - Artist by Rolling Stone - - - - Shareware - - - - Tech News by CNET - - diff --git a/xpfe/components/search/resources/internetresults.js b/xpfe/components/search/resources/internetresults.js index 8acfafbbbb67..9a1c82a0b4e3 100644 --- a/xpfe/components/search/resources/internetresults.js +++ b/xpfe/components/search/resources/internetresults.js @@ -73,20 +73,22 @@ function doEngineClick( event, aNode ) if (event.button != 1) return(false); + var html = null; + var resultsTree = document.getElementById("internetresultstree"); var contentArea = document.getElementById("content"); - var splitter = document.getElementById("gray_horizontal_splitter"); + var splitter = document.getElementById("gray_horizontal_splitter"); var engineURI = aNode.getAttribute("id"); if (engineURI == "allEngines") { resultsTree.setAttribute("style", "display: table;"); - splitter.setAttribute("style","display: block;"); + splitter.setAttribute("style","display: block;"); contentArea.setAttribute("style", "height: 100; width: 100%;"); } else { resultsTree.setAttribute("style", "display: none;"); - splitter.setAttribute("style","display: none"); + splitter.setAttribute("style","display: none"); contentArea.setAttribute("style", "height: 100%; width: 100%;"); try { @@ -99,9 +101,9 @@ function doEngineClick( event, aNode ) { var src = rdf.GetResource(engineURI, true); var htmlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#HTML", true); - html = internetSearchStore.GetTarget(src, htmlProperty, true); + html = internetSearchStore.GetTarget(src, htmlProperty, true); if ( html ) html = html.QueryInterface(Components.interfaces.nsIRDFLiteral); - if ( html ) html = html.Value + if ( html ) html = html.Value; } } } @@ -118,7 +120,9 @@ function doEngineClick( event, aNode ) doc.close(); } else + { window.frames[0].document.location = "chrome://search/content/default.htm"; + } } diff --git a/xpfe/components/search/resources/search-panel.js b/xpfe/components/search/resources/search-panel.js index 0a9b3297bd99..20c52d43b13f 100644 --- a/xpfe/components/search/resources/search-panel.js +++ b/xpfe/components/search/resources/search-panel.js @@ -87,6 +87,8 @@ function rememberSearchText(target) textNode.value = unescape(target); } + // show the results tab + switchTab(0); } @@ -187,11 +189,11 @@ function SearchPanelStartup() categoryList.selectedItem = categoryPopup.childNodes[0]; } - if( lastCategoryName == "" ) + if (( lastCategoryName == "" ) || (lastCategoryName == null)) { lastCategoryName = "NC:SearchEngineRoot"; } - else + if (lastCategoryName != "NC:SearchEngineRoot") { lastCategoryName = "NC:SearchCategory?category=" + lastCategoryName; } diff --git a/xpfe/components/search/resources/search-panel.xul b/xpfe/components/search/resources/search-panel.xul index 8403b0b7dbf0..ab82ff315efa 100644 --- a/xpfe/components/search/resources/search-panel.xul +++ b/xpfe/components/search/resources/search-panel.xul @@ -140,7 +140,7 @@ - +