4
<?xml-stylesheet href="chrome://aios/skin/downloads.css"?>
8
<!ENTITY % downloadManagerDTD SYSTEM "chrome://mozapps/locale/downloads/downloads.dtd"> %downloadManagerDTD;
10
<!ENTITY % libDTD SYSTEM "chrome://aios/locale/lib.dtd"> %libDTD;
13
<overlay id="aios_DownloadsOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
15
<script type="application/x-javascript" src="chrome://aios/content/_common.js" />
19
// Download-Fenster hier schon schlie�en => sonst geht die Fortschrittsanzeige in der Sidebar nicht
20
// => !top.document.getElementById('sidebar') => ich bin keine Sidebar
21
// => top.toString() != "[object Window]" => ich bin kein Tab
22
if(!top.document.getElementById('sidebar') && top.toString() != "[object Window]") {
23
var enable_sidebar = aios_gPrefBranch.getBoolPref("dm.sidebar");
25
// enable_sidebar => Manager soll in der Sidebar ge�ffnet werden
26
// !opener (!aios_WIN.aiosIsWindow) => nicht explizit im Fenster (z.B. durch Shift+Linksklick auf Toolbarbutton)
27
// !aios_WIN.aiosIsWindow weil sonst das Fenster nicht geschlossen w�rde,
28
// wenn es durch Klick auf das "Downloads-Fertig-Popup" ge�ffnet wurde
30
//if(enable_sidebar && !opener) {
31
if(enable_sidebar && !aios_WIN.aiosIsWindow) {
32
// wenn die Sidebar nicht schon ge�ffnet ist (z.B. Aufruf durch MR Tech Local Install)
33
if(!aios_WIN.aios_getBoolean('viewDownloadsSidebar', 'checked')) aios_WIN.toggleSidebar('viewDownloadsSidebar', true);
38
//if(top.document.getElementById('sidebar')) window.setTimeout(aios_updateListener, 100);
39
window.setInterval("aios_updateListener()", 1000);
41
/*function aios_updateListener() {
42
//while(gDownloadManager.listener == null) {
43
if(typeof gDownloadManager == "object") {
44
if(gDownloadManager.listener == null) return false;
45
// The DownloadProgressListener (DownloadProgressListener.js) handles progress
47
var downloadStrings = document.getElementById("downloadStrings");
48
gDownloadListener = new DownloadProgressListener(document, downloadStrings);
49
gDownloadManager.listener = gDownloadListener;
56
function aios_updateListener() {
57
//while(gDownloadManager.listener == null) {
58
if(gDownloadManager.listener == null && aios_appVersion.indexOf('3.0') != 0) {
59
// The DownloadProgressListener (DownloadProgressListener.js) handles progress
61
var downloadStrings = document.getElementById("downloadStrings");
62
gDownloadListener = new DownloadProgressListener(document, downloadStrings);
63
gDownloadManager.listener = gDownloadListener;
70
<script type="application/x-javascript" src="chrome://aios/content/etd.js" />
73
<hbox id="autodownloadInfo">
74
<label id="downloadFolder" position="1" hidden="true">&dwnl.saved.label;</label>
77
<hbox id="commandBar">
79
<button id="aios-toolsButton" type="menu" label="&menu.tools.label;" tooltiptext="&menu.tools.tooltip;">
81
<menupopup id="aios-toolsPopup" onpopupshowing="aios_checkToolsMenu(this);">
83
<menuitem id="menuitem_open" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'open');"
84
label="&cmd.open.label;" tooltiptext="&cmd.open.label;" accesskey="&cmd.open.accesskey;" default="true"
85
class="menuitem-iconic" />
87
<menuitem id="menuitem_retry" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'retry');"
88
label="&cmd.retry.label;" tooltiptext="&cmd.retry.label;" accesskey="&cmd.retry.accesskey;"
89
class="menuitem-iconic" />
91
<menuitem id="menuitem_show" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'show');"
92
label="&cmd.show.label;" tooltiptext="&cmd.show.label;" accesskey="&cmd.show.accesskey;"
93
class="menuitem-iconic" />
95
<menuitem id="menuitem_remove" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'remove');"
96
label="&cmd.remove.label;" tooltiptext="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
97
class="menuitem-iconic" />
99
<menuitem id="menuitem_properties" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'properties');"
100
label="&cmd.properties.label;" tooltiptext="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
101
class="menuitem-iconic" />
103
<menuitem id="menuitem_properties" oncommand="fireEventForElement(gDownloadsView.selectedItem, 'properties');"
104
label="&dwnl.props.label;" tooltiptext="&dwnl.props.label;" class="menuitem-iconic" />
108
<menuitem id="menuitem_Folder" oncommand="onDownloadShowFolder();"
109
tooltiptext="&showFolder.label;" class="menuitem-iconic" />
111
<menuitem id="menuitem_cleanUp" command="cmd_cleanUp" accesskey="&cmd.cleanUp.accesskey;"
112
label="&cmd.cleanUp.label;" tooltiptext="&cmd.cleanUp.tooltip;" class="menuitem-iconic" />
121
if(typeof aios_init == "function") window.addEventListener("load", function(e) { aios_init(); }, false);
b'\\ No newline at end of file'