зеркало из https://github.com/mozilla/gecko-dev.git
Sidebar panel has incorrect clicking behavior (71768). r=kerz sr=ben a=nobody
This commit is contained in:
Родитель
ce584de9a9
Коммит
0bdc7c6587
|
@ -533,18 +533,11 @@ BookmarksTree.prototype = {
|
|||
|
||||
treeOpen: function (aEvent)
|
||||
{
|
||||
if (!this.isValidOpenEvent(aEvent))
|
||||
return;
|
||||
|
||||
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 (this.isValidOpenEvent(aEvent)) {
|
||||
var rdfNode = this.findRDFNode(aEvent.target, true);
|
||||
if (rdfNode.getAttribute("container") != "true")
|
||||
this.open(aEvent, rdfNode);
|
||||
}
|
||||
|
||||
this.open(aEvent, rdfNode);
|
||||
},
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче