SelectItemsDialog (for See Also) unregisters tree views on close.

Fixes minor display problems with Tags, See Also.
This commit is contained in:
David Norton 2006-07-20 23:57:53 +00:00
parent 7103fd4f1d
commit 0cf2101019
4 changed files with 12 additions and 2 deletions

View file

@ -490,7 +490,7 @@
</implementation>
<content>
<xul:vbox xbl:inherits="flex">
<xul:hbox>
<xul:hbox align="center">
<xul:label id="seeAlsoNum"/>
<xul:button label="Add" oncommand="this.parentNode.parentNode.parentNode.add();"/>
</xul:hbox>

View file

@ -44,6 +44,8 @@
<label value="Coming soon"/>
</vbox>
</tabpanels>
<linksbox id="editpane-links"/>
<hbox>
<linksbox id="editpane-links" flex="1"/>
</hbox>
</tabbox>
</overlay>

View file

@ -10,6 +10,13 @@ function doLoad()
document.getElementById('collections-tree').view = collectionsView;
}
function doUnload()
{
collectionsView.unregister();
if(itemsView)
itemsView.unregister();
}
function onCollectionSelected()
{
if(itemsView)

View file

@ -13,6 +13,7 @@
buttons="cancel,accept"
ondialogaccept="doAccept();"
onload="doLoad();"
onunload="doUnload();"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
style="padding:2em">