mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 23:35:47 +01:00
Add missing :dl date sort order.
This commit is contained in:
@@ -535,6 +535,7 @@
|
|||||||
<dl>
|
<dl>
|
||||||
<dt>active</dt> <dd>Whether download is active</dd>
|
<dt>active</dt> <dd>Whether download is active</dd>
|
||||||
<dt>complete</dt> <dd>Percent complete</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>filename</dt> <dd>Target filename</dd>
|
||||||
<dt>size</dt> <dd>File size</dd>
|
<dt>size</dt> <dd>File size</dd>
|
||||||
<dt>speed</dt> <dd>Download speed</dd>
|
<dt>speed</dt> <dd>Download speed</dd>
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ var Download = Class("Download", {
|
|||||||
_compare: {
|
_compare: {
|
||||||
active: function (a, b) a.alive - b.alive,
|
active: function (a, b) a.alive - b.alive,
|
||||||
complete: function (a, b) a.percentComplete - b.percentComplete,
|
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),
|
filename: function (a, b) String.localeCompare(a.targetFile.leafName, b.targetFile.leafName),
|
||||||
size: function (a, b) a.size - b.size,
|
size: function (a, b) a.size - b.size,
|
||||||
speed: function (a, b) a.speed - b.speed,
|
speed: function (a, b) a.speed - b.speed,
|
||||||
@@ -426,6 +427,7 @@ var Downloads = Module("downloads", {
|
|||||||
values: {
|
values: {
|
||||||
active: "Whether download is active",
|
active: "Whether download is active",
|
||||||
complete: "Percent complete",
|
complete: "Percent complete",
|
||||||
|
date: "Date and time the download began",
|
||||||
filename: "Target filename",
|
filename: "Target filename",
|
||||||
size: "File size",
|
size: "File size",
|
||||||
speed: "Download speed",
|
speed: "Download speed",
|
||||||
|
|||||||
Reference in New Issue
Block a user