File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ static const char js_simple_table_resort[] = \
823
823
/* portions copied from mod_dirlist (lighttpd2) */
824
824
static const char js_simple_table_init_sort [] = \
825
825
"\n" \
826
- "function init_sort(init_sort_column, ascending ) {\n" \
826
+ "function init_sort(init_sort_column, descending ) {\n" \
827
827
" var tables = document.getElementsByTagName(\"table\");\n" \
828
828
" for (var i = 0; i < tables.length; i++) {\n" \
829
829
" var table = tables[i];\n" \
@@ -847,7 +847,7 @@ static const char js_simple_table_init_sort[] = \
847
847
" }\n" \
848
848
" }\n" \
849
849
" var lnk = row[init_sort_column].firstChild;\n" \
850
- " if (ascending ) {\n" \
850
+ " if (descending ) {\n" \
851
851
" var span = lnk.childNodes[1];\n" \
852
852
" span.setAttribute('sortdir','down');\n" \
853
853
" }\n" \
@@ -868,8 +868,8 @@ static const char js_simple_table_init_sort[] = \
868
868
" case \"D\": c=3; break;\n" \
869
869
" }\n" \
870
870
" switch (urlParams.get('O')) {\n" \
871
- " case \"A\": o=1 ; break;\n" \
872
- " case \"D\": o=0 ; break;\n" \
871
+ " case \"A\": o=0 ; break;\n" \
872
+ " case \"D\": o=1 ; break;\n" \
873
873
" }\n" \
874
874
" init_sort(c,o);\n" \
875
875
"}\n" \
You can’t perform that action at this time.
0 commit comments