mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
128322 - history sidebar opens topmost link automatically. patch by neil and me. r=andreww/hewitt sr=blake/hewitt
This commit is contained in:
parent
e184ed27d1
commit
8ba8272c8d
@ -128,18 +128,17 @@ function historyOnClick(aEvent)
|
||||
var col = { };
|
||||
var elt = { };
|
||||
gHistoryTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, col, elt);
|
||||
if (row.value >= 0 && col.value && elt.value != "twisty" && isContainer(gHistoryTree, row.value))
|
||||
gHistoryTree.treeBoxObject.view.toggleOpenState(row.value);
|
||||
if (row.value >= 0 && col.value) {
|
||||
if (!isContainer(gHistoryTree, row.value))
|
||||
OpenURL(false);
|
||||
else if (elt.value != "twisty")
|
||||
gHistoryTree.treeBoxObject.view.toggleOpenState(row.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function historyOnSelect()
|
||||
{
|
||||
if (!gHistoryStatus) {
|
||||
OpenURL(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// every time selection changes, save the last hostname
|
||||
gLastHostname = "";
|
||||
gLastDomain = "";
|
||||
|
Loading…
Reference in New Issue
Block a user