From 0b385fc5e6693947e5915435ea6ed0933fba8345 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Mon, 13 Sep 2010 09:46:22 -0400 Subject: [PATCH] about:start - let the user toggle between graphs and tables, with graphs as the default --- toolkit/content/aboutStartup.js | 16 +++++++ toolkit/content/aboutStartup.xhtml | 42 +++++++++++-------- .../en-US/chrome/global/aboutStartup.dtd | 4 +- .../themes/winstripe/global/aboutStartup.css | 24 +++++++++-- 4 files changed, 63 insertions(+), 23 deletions(-) diff --git a/toolkit/content/aboutStartup.js b/toolkit/content/aboutStartup.js index 15abf04ce93..3375a39b7ef 100755 --- a/toolkit/content/aboutStartup.js +++ b/toolkit/content/aboutStartup.js @@ -254,3 +254,19 @@ function tr() Array.forEach(arguments, function(cell) { row.appendChild(cell); }); return row; } + +function showTable() +{ + $("#showtable").hide(); + $("#showgraph").show(); + $("#graphs").hide(); + $("#tables").show(); +} + +function showGraph() +{ + $("#showgraph").hide(); + $("#showtable").show(); + $("#tables").hide(); + $("#graphs").show(); +} diff --git a/toolkit/content/aboutStartup.xhtml b/toolkit/content/aboutStartup.xhtml index b1576ee678b..ee5b3b6cc9a 100755 --- a/toolkit/content/aboutStartup.xhtml +++ b/toolkit/content/aboutStartup.xhtml @@ -29,24 +29,32 @@ &about.startup.app.ready;—— -
-
+ -

&about.startup.table;

- - - - - - - - - -
&about.startup.timestamp;&about.startup.duration.launch;&about.startup.duration.startup;&about.startup.duration.ready;&about.startup.version;
&about.startup.noevents;
- - - -
&about.startup.timestamp;&about.startup.eventdesc;
&about.startup.noevents;
+
+
+
+
+ +
+ + + + + + + + + +
&about.startup.timestamp;&about.startup.duration.launch;&about.startup.duration.startup;&about.startup.duration.ready;&about.startup.version;
&about.startup.noevents;
+ + + +
&about.startup.timestamp;&about.startup.eventdesc;
&about.startup.noevents;
+