For the love of all that is holy, persist the item pane width

This commit is contained in:
Dan Stillman 2006-10-24 06:26:41 +00:00
parent 953a43064a
commit 9762d768e1
2 changed files with 6 additions and 6 deletions

View File

@ -268,7 +268,7 @@ var ZoteroPane = new function()
{ {
document.getElementById('zotero-view-note-button').removeAttribute('sourceID'); 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()) else if(item.isAttachment())
{ {
@ -349,17 +349,17 @@ var ZoteroPane = new function()
noteEditor.item = null; noteEditor.item = null;
noteEditor.note = item.ref; noteEditor.note = item.ref;
document.getElementById('item-pane').selectedIndex = 3; document.getElementById('item-pane-content').selectedIndex = 3;
} }
else else
{ {
ZoteroItemPane.viewItem(item.ref); ZoteroItemPane.viewItem(item.ref);
document.getElementById('item-pane').selectedIndex = 1; document.getElementById('item-pane-content').selectedIndex = 1;
} }
} }
else else
{ {
document.getElementById('item-pane').selectedIndex = 0; document.getElementById('item-pane-content').selectedIndex = 0;
var label = document.getElementById('zotero-view-selected-label'); var label = document.getElementById('zotero-view-selected-label');

View File

@ -188,7 +188,7 @@
</tree> </tree>
</vbox> </vbox>
<splitter id="zotero-view-splitter" resizebefore="closest" resizeafter="closest"/> <splitter id="zotero-view-splitter" resizebefore="closest" resizeafter="closest"/>
<vbox> <vbox id="item-pane" persist="width">
<toolbar align="right"> <toolbar align="right">
<toolbarbutton id="tb-fullscreen" tooltiptext="&zotero.toolbar.fullscreen.tooltip;" oncommand="ZoteroPane.fullScreen();"/> <toolbarbutton id="tb-fullscreen" tooltiptext="&zotero.toolbar.fullscreen.tooltip;" oncommand="ZoteroPane.fullScreen();"/>
<toolbarbutton class="tabs-closebutton" oncommand="ZoteroPane.toggleDisplay()"/> <toolbarbutton class="tabs-closebutton" oncommand="ZoteroPane.toggleDisplay()"/>
@ -203,7 +203,7 @@
<tab label="&zotero.tabs.related.label;"/> <tab label="&zotero.tabs.related.label;"/>
</tabs> </tabs>
</caption> </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"> <box pack="center" align="center">
<label id="zotero-view-selected-label"/> <label id="zotero-view-selected-label"/>
</box> </box>