128322 - history sidebar opens topmost link automatically. patch by neil and me. r=andreww/hewitt sr=blake/hewitt
git-svn-id: svn://10.0.0.236/trunk@204798 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9b263b56bb
commit
cf966995dc
@ -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…
x
Reference in New Issue
Block a user