diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-18 22:04:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-18 22:04:11 -0700 |
commit | 293569cb19baf6a447d5a888718d56e50ed785d3 (patch) | |
tree | b313eac8a1070c94f5020b9caea147d0d965cc1f | |
parent | f5510892a6777e76f1d83642d544b20bc1a01a19 (diff) | |
download | subsurface-293569cb19baf6a447d5a888718d56e50ed785d3.tar.gz |
HTML export: before showing the dive list, sort descending by dive number
This way the newest dive gets shown first (which I think makes much more
sense) and the dives are in order as we show them in Subsurface.
I actually think we should toggle trips on by default - but I'm not sure.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | theme/list_lib.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index ed01e6841..b6ac97366 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -20,6 +20,7 @@ function showAllDives() for (var i = 0; i < items.length; i++) { itemsToShow.push(i); } + change_sort_col('1'); olditemstoshow = itemsToShow; start = 0; viewInPage(); |