Reopen collapsed collections pane on restart, for now
Same as item pane Closes #825
This commit is contained in:
parent
ec0b993a17
commit
787e57f6a2
1 changed files with 3 additions and 8 deletions
|
@ -4770,14 +4770,9 @@ var ZoteroPane = new function()
|
|||
if(!el) return;
|
||||
var elValues = serializedValues[id];
|
||||
for(var attr in elValues) {
|
||||
// TEMP: For now, ignore persisted collapsed state for item pane splitter
|
||||
if (el.id == 'zotero-items-splitter' && attr == 'state') continue;
|
||||
// And don't restore to min-width if splitter was collapsed
|
||||
if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250
|
||||
&& 'zotero-items-splitter' in serializedValues
|
||||
&& serializedValues['zotero-items-splitter'].state == 'collapsed') {
|
||||
continue;
|
||||
}
|
||||
// TEMP: For now, ignore persisted collapsed state for collection and item pane splitters
|
||||
if ((el.id == 'zotero-collections-splitter' || el.id == 'zotero-items-splitter')
|
||||
&& attr == 'state') continue;
|
||||
el.setAttribute(attr, elValues[attr]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue