mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
citation dlg: fix menubar missing on first open (#5154)
Do not wait for the itemTree to add the menubar but create it immediately and just initialize it when itemTree is ready. Fixes: #5153
This commit is contained in:
parent
cf37bf5ce1
commit
951ed4fa4b
2 changed files with 5 additions and 0 deletions
|
|
@ -564,6 +564,7 @@ class LibraryLayout extends Layout {
|
|||
return undefined;
|
||||
}
|
||||
});
|
||||
doc.querySelector("item-tree-menu-bar").init(this.itemsView);
|
||||
// handle icon click to add/remove items
|
||||
itemsTree.addEventListener("mousedown", event => this._handleItemsViewRowClick(event), true);
|
||||
itemsTree.addEventListener("mouseup", event => this._handleItemsViewRowClick(event), true);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@
|
|||
<script src="citationDialog.js"/>
|
||||
<script src="../titlebar.js" type="text/javascript"/>
|
||||
</head>
|
||||
|
||||
<!-- do not wait for itemTree to add the menubar, otherwise it does not appear on the first dialog open -->
|
||||
<xul:item-tree-menu-bar/>
|
||||
|
||||
<body class="vbox flex">
|
||||
<div id="search-area" class="layout">
|
||||
<div id="search-row" class="hbox">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue