mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
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:
parent
4e532a17a2
commit
e1759daa00
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();
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue