1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 08:04:15 +01:00

Add missing :dl date sort order.

This commit is contained in:
Kris Maglione
2011-04-28 21:09:34 -04:00
parent a5e4a50569
commit 59e7689669
2 changed files with 3 additions and 0 deletions

View File

@@ -535,6 +535,7 @@
<dl>
<dt>active</dt> <dd>Whether download is active</dd>
<dt>complete</dt> <dd>Percent complete</dd>
<dt>date</dt> <dd>Date and time the download began</dd>
<dt>filename</dt> <dd>Target filename</dd>
<dt>size</dt> <dd>File size</dd>
<dt>speed</dt> <dd>Download speed</dd>

View File

@@ -124,6 +124,7 @@ var Download = Class("Download", {
_compare: {
active: function (a, b) a.alive - b.alive,
complete: function (a, b) a.percentComplete - b.percentComplete,
date: function (a, b) a.startTime - b.startTime,
filename: function (a, b) String.localeCompare(a.targetFile.leafName, b.targetFile.leafName),
size: function (a, b) a.size - b.size,
speed: function (a, b) a.speed - b.speed,
@@ -426,6 +427,7 @@ var Downloads = Module("downloads", {
values: {
active: "Whether download is active",
complete: "Percent complete",
date: "Date and time the download began",
filename: "Target filename",
size: "File size",
speed: "Download speed",