[Pkg-mozext-commits] [firebug] 03/15: Sort commands alphabetically (help table)
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:37 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.5
in repository firebug.
commit 6e3487cb7e9603a8dcb5369f45c939fc7e325609
Author: Jan Odvarko <odvarko at gmail.com>
Date: Thu Oct 11 10:07:03 2012 +0200
Sort commands alphabetically (help table)
---
extension/content/firebug/console/commandLineHelp.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/extension/content/firebug/console/commandLineHelp.js b/extension/content/firebug/console/commandLineHelp.js
index 7d9b607..73e2d2c 100644
--- a/extension/content/firebug/console/commandLineHelp.js
+++ b/extension/content/firebug/console/commandLineHelp.js
@@ -35,6 +35,7 @@ var HelpCaption = domplate(
)
});
+// The table UI should be based on tableRep
var HelpTable = domplate(
{
tag:
@@ -147,6 +148,10 @@ var CommandLineHelp = domplate(
})
}
+ // Sort commands
+ commands.sort(function sortName(a, b) { return a.name > b.name ? 1 : -1; });
+
+ // Generate table
HelpEntry.tag.insertRows({commands: commands}, tBody);
return row;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list