SelectItemsDialog (for See Also) unregisters tree views on close.
Fixes minor display problems with Tags, See Also.
This commit is contained in:
parent
7103fd4f1d
commit
0cf2101019
4 changed files with 12 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
<label value="Coming soon"/>
|
||||
</vbox>
|
||||
</tabpanels>
|
||||
<linksbox id="editpane-links"/>
|
||||
<hbox>
|
||||
<linksbox id="editpane-links" flex="1"/>
|
||||
</hbox>
|
||||
</tabbox>
|
||||
</overlay>
|
|
@ -10,6 +10,13 @@ function doLoad()
|
|||
document.getElementById('collections-tree').view = collectionsView;
|
||||
}
|
||||
|
||||
function doUnload()
|
||||
{
|
||||
collectionsView.unregister();
|
||||
if(itemsView)
|
||||
itemsView.unregister();
|
||||
}
|
||||
|
||||
function onCollectionSelected()
|
||||
{
|
||||
if(itemsView)
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
Loading…
Reference in a new issue