From b33d3ec799f9259df01038f034fbf2ae12591c94 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 12 Apr 2023 16:53:28 -0400 Subject: [PATCH] Basic viewer: Open separate windows per URI (#3081) --- .../content/zotero/preferences/preferences.js | 16 ----------- .../preferences/preferences_advanced.xhtml | 4 +-- .../zotero/preferences/preferences_cite.xhtml | 4 +-- .../content/zotero/standalone/basicViewer.js | 1 + chrome/content/zotero/xpcom/zotero.js | 27 ++++++++++--------- 5 files changed, 19 insertions(+), 33 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 9a5e95be28..2eb9fa29a8 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -124,22 +124,6 @@ var Zotero_Preferences = { } }, - /** - * Opens a URI in the basic viewer - */ - openInViewer: function (uri) { - var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var win = wm.getMostRecentWindow("zotero:basicViewer"); - if (win) { - win.loadURI(uri); - } - else { - window.openDialog("chrome://zotero/content/standalone/basicViewer.xhtml", - "basicViewer", "chrome,resizable,centerscreen,menubar,scrollbars", uri); - } - }, - _onNavigationSelect() { for (let child of this.content.children) { if (child !== this.helpContainer) { diff --git a/chrome/content/zotero/preferences/preferences_advanced.xhtml b/chrome/content/zotero/preferences/preferences_advanced.xhtml index 7c48815986..e54779b4df 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.xhtml +++ b/chrome/content/zotero/preferences/preferences_advanced.xhtml @@ -253,10 +253,10 @@