mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Show in-window message in style preview instead of progress popup
Since30b5bf4bb9, 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/ (cherry picked from commite1759daa00)
This commit is contained in:
parent
8d68f6cb89
commit
ecf033eae1
2 changed files with 4 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -550,6 +550,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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue