Bug 941109 - use closemenu instead of noautoclose attribute in Australis menupanel, r=mconley

This commit is contained in:
Gijs Kruitbosch
2014-01-21 19:01:16 +00:00
parent b36e773016
commit 722bc9f78f
6 changed files with 24 additions and 17 deletions

View File

@@ -330,9 +330,15 @@ const PanelUI = {
* so that the panel knows if and when to close itself.
*/
onCommandHandler: function(aEvent) {
if (!aEvent.originalTarget.hasAttribute("noautoclose")) {
PanelUI.hide();
let closemenu = aEvent.originalTarget.getAttribute("closemenu");
if (closemenu == "none") {
return;
}
if (closemenu == "single") {
this.showMainView();
return;
}
this.hide();
},
/**