Sidebar panel has incorrect clicking behavior (71768). r=kerz sr=ben a=nobody

This commit is contained in:
blakeross%telocity.com 2001-06-26 02:43:22 +00:00
Родитель ce584de9a9
Коммит 0bdc7c6587
1 изменённых файлов: 4 добавлений и 11 удалений

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

@ -533,18 +533,11 @@ BookmarksTree.prototype = {
treeOpen: function (aEvent)
{
if (!this.isValidOpenEvent(aEvent))
return;
if (this.isValidOpenEvent(aEvent)) {
var rdfNode = this.findRDFNode(aEvent.target, true);
if (rdfNode.getAttribute("container") == "true") {
if (this.openClickCount == 1)
rdfNode.setAttribute("open", rdfNode.getAttribute("open") != "true");
gSelectionTracker.clickCount = 0;
return;
}
if (rdfNode.getAttribute("container") != "true")
this.open(aEvent, rdfNode);
}
},
/////////////////////////////////////////////////////////////////////////////