Fixes #97, target="_blank" error
All windows opened will check their opener and try to match the collapsed state of the scholar pane to that of the window that opened it.
This commit is contained in:
parent
cb8f961639
commit
965f4c3c0a
|
@ -37,6 +37,17 @@ var ScholarPane = new function()
|
|||
//select Library
|
||||
collectionsView.selection.select(0);
|
||||
|
||||
if(window.opener)
|
||||
{
|
||||
var pane = window.opener.document.getElementById('scholar-pane');
|
||||
if(pane)
|
||||
{
|
||||
var b = pane.getAttribute('collapsed');
|
||||
if(b != document.getElementById('scholar-pane').getAttribute('collapsed'))
|
||||
toggleDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
//Create the add menu with each item type
|
||||
var addMenu = document.getElementById('tb-add').firstChild;
|
||||
var itemTypes = Scholar.ItemTypes.getTypes();
|
||||
|
|
Loading…
Reference in New Issue
Block a user