From 3d75801a8404641b6c285fbd18a772aaf8bf3b7a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 31 Jan 2025 00:57:13 -0500 Subject: [PATCH] Don't open new copies of runJS/scaffold/csledit Possible we'll get complaints about no longer being able to open multiple copies of at least runJS and csledit, and we can reconsider if so, but reopening the existing window is certainly the intended behavior. --- chrome/content/scaffold/scaffold.xhtml | 1 + chrome/content/zotero/runJS.html | 2 +- chrome/content/zotero/tools/csledit.xhtml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/scaffold/scaffold.xhtml b/chrome/content/scaffold/scaffold.xhtml index 2e6ca2f70f..519e65914f 100644 --- a/chrome/content/scaffold/scaffold.xhtml +++ b/chrome/content/scaffold/scaffold.xhtml @@ -43,6 +43,7 @@ title="Scaffold" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" + windowtype="zotero:scaffold" style="display: flex;" drawintitlebar-platforms="win, linux"> diff --git a/chrome/content/zotero/runJS.html b/chrome/content/zotero/runJS.html index dce469c89a..509e279c08 100644 --- a/chrome/content/zotero/runJS.html +++ b/chrome/content/zotero/runJS.html @@ -1,4 +1,4 @@ - + diff --git a/chrome/content/zotero/tools/csledit.xhtml b/chrome/content/zotero/tools/csledit.xhtml index e9e1fb765f..91d168c552 100644 --- a/chrome/content/zotero/tools/csledit.xhtml +++ b/chrome/content/zotero/tools/csledit.xhtml @@ -35,6 +35,7 @@ id="csl-edit" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" + windowtype="zotero:style-editor" onload="Zotero_CSL_Editor.init();" title="&styles.editor;">