Bug 196755 [mailviews] [modern skin only] Unable to create new Views (pull down menus do not retain changes) Relanding of patch following landing of aviary branch

This commit is contained in:
bugzilla@arlen.demon.co.uk 2007-08-21 21:59:45 -07:00
parent 6e162dafda
commit 53b7fed84a

View File

@ -80,7 +80,6 @@
<xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1" <xul:tabs class="tabbrowser-tabs" closebutton="true" flex="1"
setfocus="false" setfocus="false"
onclick="this.parentNode.parentNode.parentNode.onTabClick(event);" onclick="this.parentNode.parentNode.parentNode.onTabClick(event);"
onmousedown="this.parentNode.parentNode.parentNode.updateContextTab(event);"
ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode.parentNode); ondragover="nsDragAndDrop.dragOver(event, this.parentNode.parentNode.parentNode);
event.stopPropagation();" event.stopPropagation();"
ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode.parentNode); ondragdrop="nsDragAndDrop.drop(event, this.parentNode.parentNode.parentNode);
@ -508,22 +507,11 @@
</body> </body>
</method> </method>
<method name="updateContextTab">
<parameter name="aEvent"/>
<body>
<![CDATA[
if (aEvent.originalTarget.localName == "tab")
this.mContextTab = aEvent.originalTarget;
else
this.mContextTab = document.popupNode;
]]>
</body>
</method>
<method name="updatePopupMenu"> <method name="updatePopupMenu">
<parameter name="aPopupMenu"/> <parameter name="aPopupMenu"/>
<body> <body>
<![CDATA[ <![CDATA[
this.mContextTab = document.popupNode;
var disabled = this.mPanelContainer.childNodes.length == 1; var disabled = this.mPanelContainer.childNodes.length == 1;
var menuItems = aPopupMenu.getElementsByAttribute("tbattr", "tabbrowser-multiple"); var menuItems = aPopupMenu.getElementsByAttribute("tbattr", "tabbrowser-multiple");
for (var i = 0; i < menuItems.length; i++) for (var i = 0; i < menuItems.length; i++)