Show in-window message in style preview instead of progress popup

Since 30b5bf4bb9, the popup opens as a dependent window of the main
window, so it appeared behind the Style Preview window and, on Windows,
brought the main window to the front.

https://forums.zotero.org/discussion/133296/
This commit is contained in:
Dan Stillman 2026-08-19 10:47:48 -04:00
parent 4e532a17a2
commit e1759daa00
2 changed files with 4 additions and 8 deletions

View file

@ -47,14 +47,8 @@ var Zotero_CSL_Preview = new function () {
this.updateIframe(Zotero.getString('styles.editor.warning.noItems'), 'warning');
return;
}
var progressWin = new Zotero.ProgressWindow();
// XXX needs its own string really!
progressWin.changeHeadline(Zotero.getString("pane.items.menu.createBib.multiple"));
var icon = 'chrome://zotero/skin/treeitem-attachment-file.png';
progressWin.addLines(document.title, icon);
progressWin.show();
progressWin.startCloseTimer();
// Give progress window time to appear
this.updateIframe(Zotero.ftl.formatValueSync('stylePreview-generating'));
// Let the message paint before generation blocks the main thread
setTimeout(() => {
var d = new Date();
var styles = Zotero.Styles.getVisible();

View file

@ -552,6 +552,8 @@ styleEditor-editor =
styleEditor-preview =
.aria-label = Preview
stylePreview-generating = Generating previews…
publications-intro-page = My Publications
publications-intro = Items you add to My Publications will be shown on your profile page on zotero.org. If you choose to include attached files, they will be made publicly available under the license you specify. Only add work you yourself have created, and only include files if you have the rights to distribute them and wish to do so.