fx-compat: Fix ProgressWindow
This commit is contained in:
parent
95f2e40434
commit
730677a918
2 changed files with 3 additions and 4 deletions
|
@ -38,10 +38,9 @@
|
|||
windowtype="alert:alert">
|
||||
|
||||
<vbox id="zotero-progress-text-box" flex="1" style="padding: 10px">
|
||||
<hbox align="stretch">
|
||||
<hbox id="zotero-progress-text-headline" align="stretch">
|
||||
<label id="progress-label" flex="1"/>
|
||||
</hbox>
|
||||
<html:progress id="progress-indicator" max="100"/>
|
||||
</vbox>
|
||||
<script>
|
||||
window.addEventListener("DOMContentLoaded", () => window.sizeToContent())
|
||||
|
|
|
@ -124,7 +124,7 @@ Zotero.ProgressWindow = function(options = {}) {
|
|||
}
|
||||
|
||||
if (_window) {
|
||||
_progressWindow = _window.openDialog("chrome://zotero/content/progressWindow.xul",
|
||||
_progressWindow = _window.openDialog("chrome://zotero/content/progressWindow.xhtml",
|
||||
"", "chrome,dialog=no,titlebar=no,alwaysontop=yes");
|
||||
_window.addEventListener('close', () => {
|
||||
this.close();
|
||||
|
@ -133,7 +133,7 @@ Zotero.ProgressWindow = function(options = {}) {
|
|||
else {
|
||||
let ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
|
||||
.getService(Components.interfaces.nsIWindowWatcher);
|
||||
_progressWindow = ww.openWindow(null, "chrome://zotero/content/progressWindow.xul",
|
||||
_progressWindow = ww.openWindow(null, "chrome://zotero/content/progressWindow.xhtml",
|
||||
"", "chrome,dialog=no,titlebar=no,alwaysontop=yes", null);
|
||||
}
|
||||
_progressWindow.addEventListener("load", _onWindowLoaded, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue