mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Stuff that's not part of the build can stay in.
This commit is contained in:
parent
69a2eecc19
commit
a8a02696d9
@ -48,7 +48,7 @@ var gStatusBar = null;
|
||||
|
||||
function NODE_ID(aElement)
|
||||
{
|
||||
return aElement.getAttribute("ref") || aElement.id;
|
||||
return aElement.id || aElement.getAttribute("ref");
|
||||
}
|
||||
|
||||
function Startup()
|
||||
@ -134,7 +134,7 @@ var downloadViewController = {
|
||||
var cmds = ["cmd_properties", "cmd_pause", "cmd_cancel",
|
||||
"cmd_openfile", "cmd_showinshell"];
|
||||
var selectionCount = gDownloadView.selectedItems.length;
|
||||
if (!selectionCount) return false;
|
||||
if (!selectionCount || !gDownloadView.getRowCount()) return false;
|
||||
|
||||
var isDownloading = gDownloadManager.getDownload(gDownloadView.selectedItems[0].id);
|
||||
switch (aCommand) {
|
||||
@ -204,6 +204,7 @@ var downloadViewController = {
|
||||
case "cmd_remove":
|
||||
for (i = 0; i < selection.length; ++i)
|
||||
gDownloadManager.removeDownload(selection[i].id);
|
||||
window.updateCommands("tree-select");
|
||||
break;
|
||||
case "cmd_selectAll":
|
||||
gDownloadView.selectAll();
|
||||
|
@ -109,17 +109,15 @@
|
||||
</keyset>
|
||||
|
||||
<toolbox>
|
||||
<toolbar id="download-toolbar" class="chromeclass-toolbar" persist="collapsed">
|
||||
<toolbar id="download-toolbar" tbalign="stretch" class="chromeclass-toolbar" persist="collapsed">
|
||||
<toolbarbutton label="&cmd.properties.label;" accesskey="&cmd.properties.accesskey;"
|
||||
command="cmd_properties"/>
|
||||
<toolbarbutton label="&cmd.pause.label;" accesskey="&cmd.pause.accesskey;"
|
||||
command="cmd_pause"/>
|
||||
<toolbarseparator class="toolbarseparator-standard"/>
|
||||
<toolbarseparator/>
|
||||
<toolbarbutton label="&cmd.cancel.label;" accesskey="&cmd.cancel.accesskey;"
|
||||
command="cmd_cancel"/>
|
||||
<toolbarbutton label="&cmd.remove.label;" accesskey="&cmd.remove.accesskey;"
|
||||
command="cmd_remove"/>
|
||||
<toolbarseparator class="toolbarseparator-standard"/>
|
||||
<toolbarseparator/>
|
||||
<toolbarbutton id="btn_openfile" label="&cmd.openfile.label;" accesskey="&cmd.openfile.accesskey;"
|
||||
command="cmd_openfile"/>
|
||||
<toolbarbutton id="btn_showinshell" command="cmd_showinshell"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<!ENTITY cmd.properties.keybinding "i">
|
||||
<!ENTITY cmd.pause.label "Pause">
|
||||
<!ENTITY cmd.pause.accesskey "p">
|
||||
<!ENTITY cmd.remove.label "Remove from list">
|
||||
<!ENTITY cmd.remove.label "Remove from List">
|
||||
<!ENTITY cmd.remove.accesskey "r">
|
||||
<!ENTITY cmd.cancel.label "Cancel">
|
||||
<!ENTITY cmd.cancel.accesskey "c">
|
||||
|
@ -15,7 +15,7 @@
|
||||
<!ENTITY cmd.properties.keybinding "i">
|
||||
<!ENTITY cmd.pause.label "Pause">
|
||||
<!ENTITY cmd.pause.accesskey "p">
|
||||
<!ENTITY cmd.remove.label "Remove from list">
|
||||
<!ENTITY cmd.remove.label "Remove from List">
|
||||
<!ENTITY cmd.remove.accesskey "r">
|
||||
<!ENTITY cmd.cancel.label "Cancel">
|
||||
<!ENTITY cmd.cancel.accesskey "c">
|
||||
|
Loading…
Reference in New Issue
Block a user