Forgot to make history window set its windowtype to history:searchresults when the window is opened in search mode.

r=matt, sr=blake
This commit is contained in:
ben%netscape.com 2001-05-19 03:33:21 +00:00
Родитель d8dc78eb98
Коммит 70c78eb3f6
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -53,9 +53,16 @@ function HistoryInit() {
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
if ("arguments" in window && window.arguments && window.arguments.length >= 1) {
if ("arguments" in window && window.arguments[0] && window.arguments.length >= 1) {
// We have been supplied a resource URI to root the tree on
setRoot(window.arguments[0]);
var uri = window.arguments[0];
setRoot(uri);
if (uri.substring(0,5) == "find:") {
// Update the windowtype so that future searches are directed
// there and the window is not re-used for bookmarks.
var windowNode = document.getElementById("history-window");
windowNode.setAttribute("windowtype", "history:searchresults");
}
}
var children = document.getElementById('treechildren-bookmarks');