diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index b9e107b518..42f5318630 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -128,12 +128,23 @@ var Zotero_Tabs = new function () { } else if (tab.type === 'reader') { if (Zotero.Items.exists(tab.data.itemID)) { - this.add({ - type: 'reader-unloaded', - title: tab.title, - index: i, - data: tab.data - }); + if (tab.selected) { + Zotero.Reader.open(tab.data.itemID, + null, + { + title: tab.title, + openInBackground: !tab.selected + } + ); + } + else { + this.add({ + type: 'reader-unloaded', + title: tab.title, + index: i, + data: tab.data + }); + } } } }