summaryrefslogtreecommitdiffstats
path: root/theme/list_lib.js
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-08-07 11:10:59 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-11 08:20:59 -0700
commit70cfe4f9eb31a69cec07de1b1b54f388525909d0 (patch)
tree2c470e16a3e4419fe4a9bcd8747d1730aac019b9 /theme/list_lib.js
parent93a15d471c81efe57d32208c20129c5ac17e3b4a (diff)
downloadsubsurface-70cfe4f9eb31a69cec07de1b1b54f388525909d0.tar.gz
HTML: Search results must be sorted by default.
-Fix search results to be sorted by default. -Fix two typos. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r--theme/list_lib.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 684d92e13..ade54c885 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -218,7 +218,7 @@ function getExpanded(dive)
'</td></tr><tr><td class="words">Tags: </td><td>' + putTags(dive.tags) +
'</td></tr></table><div style="margin:10px;"><p class="words">Notes: </p>' + dive.notes + '</div>';
if (settings.listOnly === '0') {
- res += '<center><a onclick="showDiveDetails(' + dive.number + ')">show more details</a></center>';
+ res += '<center><a onclick="showDiveDetails(' + dive.number + ')">Show more details</a></center>';
}
return res;
};
@@ -271,7 +271,7 @@ var locat = true;
This variable keep the state of the col.
which is sorted upon it.
*/
-var sort_based_on = 1; // sorting is based on number by default.
+var sort_based_on = '1'; // sorting is based on number by default.
function change_sort_col(sortOn)
{
@@ -679,7 +679,7 @@ function showStats()
function getDiveStats(){
var res = "";
res += '<table><tr id="stats_header">';
- res += '<td class="statscell">Year</td><td class="statscell">#</td><td class="statscell">Total Time</td><td class="statscell">Avarage Time</td><td class="statscell">Shortest Time</td><td class="statscell">Longest Time</td><td class="statscell">Avarage Depth</td><td class="statscell">Min Depth</td><td class="statscell">Max Depth</td><td class="statscell">Average SAC</td><td class="statscell">Min SAC</td><td class="statscell">Max SAC</td><td class="statscell">Average Temp</td><td class="statscell">Min Temp</td><td class="statscell">Max Temp</td>';
+ res += '<td class="statscell">Year</td><td class="statscell">#</td><td class="statscell">Total Time</td><td class="statscell">Average Time</td><td class="statscell">Shortest Time</td><td class="statscell">Longest Time</td><td class="statscell">Average Depth</td><td class="statscell">Min Depth</td><td class="statscell">Max Depth</td><td class="statscell">Average SAC</td><td class="statscell">Min SAC</td><td class="statscell">Max SAC</td><td class="statscell">Average Temp</td><td class="statscell">Min Temp</td><td class="statscell">Max Temp</td>';
res += '</tr>';
res += getStatsRows();
res += '</table>';