зеркало из https://github.com/mozilla/pjs.git
Bug 563117: Clicking pane selector of selected type while staying in details view should return to add-on list. r=dtownsend
This commit is contained in:
Родитель
b4a4be73f1
Коммит
5f69409343
|
@ -596,6 +596,20 @@ var gCategories = {
|
||||||
self.maybeHideSearch();
|
self.maybeHideSearch();
|
||||||
gViewController.loadView(self.node.selectedItem.value);
|
gViewController.loadView(self.node.selectedItem.value);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
this.node.addEventListener("click", function(aEvent) {
|
||||||
|
var selectedItem = self.node.selectedItem;
|
||||||
|
if (aEvent.target.localName == "richlistitem" &&
|
||||||
|
aEvent.target == selectedItem) {
|
||||||
|
var viewId = selectedItem.value;
|
||||||
|
|
||||||
|
if (gViewController.parseViewId(viewId).type == "search") {
|
||||||
|
viewId += encodeURIComponent(gHeader.searchQuery);
|
||||||
|
}
|
||||||
|
|
||||||
|
gViewController.loadView(viewId);
|
||||||
|
}
|
||||||
|
}, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
select: function(aId) {
|
select: function(aId) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче