зеркало из https://github.com/mozilla/gecko-dev.git
Landing Neil's fix for bug 132682 - Twisties aren't clickable in History Sidebar
r=varga, sr=alecf
This commit is contained in:
Родитель
e0d74dbab0
Коммит
3246371a97
|
@ -117,13 +117,12 @@ function historyOnClick(aEvent)
|
||||||
// This is kind of a hack but matches the currently implemented behaviour.
|
// This is kind of a hack but matches the currently implemented behaviour.
|
||||||
// If a status bar is not present, assume we're in sidebar mode, and thus single clicks on containers
|
// If a status bar is not present, assume we're in sidebar mode, and thus single clicks on containers
|
||||||
// will open the container. Single clicks on non-containers are handled below in historyOnSelect.
|
// will open the container. Single clicks on non-containers are handled below in historyOnSelect.
|
||||||
if (!gHistoryStatus) {
|
if (!gHistoryStatus && aEvent.button == 0) {
|
||||||
var currentIndex = gHistoryTree.currentIndex;
|
|
||||||
var row = { };
|
var row = { };
|
||||||
var col = { };
|
var col = { };
|
||||||
var elt = { };
|
var elt = { };
|
||||||
gHistoryTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, col, elt);
|
gHistoryTree.treeBoxObject.getCellAt(aEvent.clientX, aEvent.clientY, row, col, elt);
|
||||||
if (row.value >= 0 && isContainer(gHistoryTree, row.value))
|
if (row.value >= 0 && col.value && elt.value != "twisty" && isContainer(gHistoryTree, row.value))
|
||||||
gHistoryTree.treeBoxObject.view.toggleOpenState(row.value);
|
gHistoryTree.treeBoxObject.view.toggleOpenState(row.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче