Fixes #310, active focus remains with zotero pane closed

Plus a couple JS strict warnings
This commit is contained in:
Dan Stillman 2006-10-03 19:09:21 +00:00
parent eb94d648d7
commit 49a8d68e60
2 changed files with 6 additions and 2 deletions

View file

@ -122,6 +122,7 @@ var ZoteroPane = new function()
*/
function toggleDisplay()
{
// Visible == target visibility
var visible = document.getElementById('zotero-pane').getAttribute('collapsed') == 'true';
document.getElementById('zotero-pane').setAttribute('collapsed',!visible);
@ -131,6 +132,9 @@ var ZoteroPane = new function()
{
document.getElementById('content').setAttribute('collapsed', false);
document.getElementById('tb-fullscreen').setAttribute('fullscreenmode', false);
// Return focus to the browser content pane
window.content.window.focus();
}
}

View file

@ -77,7 +77,7 @@
onselect="ZoteroPane.onCollectionSelected();" seltype="single"
ondragdrop="nsDragAndDrop.drop(event,ZoteroPane.getCollectionsView())"
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ZoteroPane.getCollectionsView());"
onkeypress="if (event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ZoteroPane.deleteSelectedCollection(); return false; }"
onkeypress="if (event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ZoteroPane.deleteSelectedCollection(); }"
flex="1">
<treecols>
<treecol
@ -119,7 +119,7 @@
id="items-tree" context="zotero-itemmenu"
ondblclick="ZoteroPane.onDoubleClick(event, this);"
enableColumnDrag="true"
onkeypress="if (event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ZoteroPane.deleteSelectedItem(); return false; }"
onkeypress="if (event.keyCode == event.DOM_VK_BACK_SPACE || event.keyCode == event.DOM_VK_DELETE){ ZoteroPane.deleteSelectedItem(); }"
onselect="ZoteroPane.itemSelected();"
ondraggesture="if (event.target.localName == 'treechildren') nsDragAndDrop.startDrag(event,ZoteroPane.getItemsView());"
ondragover="nsDragAndDrop.dragOver(event,ZoteroPane.getItemsView())"