For the love of all that is holy, persist the item pane width
This commit is contained in:
parent
953a43064a
commit
9762d768e1
|
@ -268,7 +268,7 @@ var ZoteroPane = new function()
|
|||
{
|
||||
document.getElementById('zotero-view-note-button').removeAttribute('sourceID');
|
||||
}
|
||||
document.getElementById('item-pane').selectedIndex = 2;
|
||||
document.getElementById('item-pane-content').selectedIndex = 2;
|
||||
}
|
||||
else if(item.isAttachment())
|
||||
{
|
||||
|
@ -349,17 +349,17 @@ var ZoteroPane = new function()
|
|||
noteEditor.item = null;
|
||||
noteEditor.note = item.ref;
|
||||
|
||||
document.getElementById('item-pane').selectedIndex = 3;
|
||||
document.getElementById('item-pane-content').selectedIndex = 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
ZoteroItemPane.viewItem(item.ref);
|
||||
document.getElementById('item-pane').selectedIndex = 1;
|
||||
document.getElementById('item-pane-content').selectedIndex = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('item-pane').selectedIndex = 0;
|
||||
document.getElementById('item-pane-content').selectedIndex = 0;
|
||||
|
||||
var label = document.getElementById('zotero-view-selected-label');
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
</tree>
|
||||
</vbox>
|
||||
<splitter id="zotero-view-splitter" resizebefore="closest" resizeafter="closest"/>
|
||||
<vbox>
|
||||
<vbox id="item-pane" persist="width">
|
||||
<toolbar align="right">
|
||||
<toolbarbutton id="tb-fullscreen" tooltiptext="&zotero.toolbar.fullscreen.tooltip;" oncommand="ZoteroPane.fullScreen();"/>
|
||||
<toolbarbutton class="tabs-closebutton" oncommand="ZoteroPane.toggleDisplay()"/>
|
||||
|
@ -203,7 +203,7 @@
|
|||
<tab label="&zotero.tabs.related.label;"/>
|
||||
</tabs>
|
||||
</caption>
|
||||
<deck id="item-pane" selectedIndex="0" flex="1" onselect="document.getElementById('zotero-view-tabs').setAttribute('hidden',(this.selectedIndex != 1));">
|
||||
<deck id="item-pane-content" selectedIndex="0" flex="1" onselect="document.getElementById('zotero-view-tabs').setAttribute('hidden',(this.selectedIndex != 1));">
|
||||
<box pack="center" align="center">
|
||||
<label id="zotero-view-selected-label"/>
|
||||
</box>
|
||||
|
|
Loading…
Reference in New Issue
Block a user