aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-11-16 01:34:03 -0500
committerThedro Neely <thedroneely@gmail.com>2022-11-16 01:34:03 -0500
commit906ad33bf41eef73fb1d4a692bb75e989a5f7ec9 (patch)
tree99165bc547f05a8e5fa2e0059070777782953cba
parente6d95488be4310b8bd85854c541777bb26299658 (diff)
downloadedwinmattiacci.com-906ad33bf41eef73fb1d4a692bb75e989a5f7ec9.tar.gz
edwinmattiacci.com-906ad33bf41eef73fb1d4a692bb75e989a5f7ec9.tar.bz2
edwinmattiacci.com-906ad33bf41eef73fb1d4a692bb75e989a5f7ec9.zip
bootstrap/comments/frontend/init: Sort comments by date
-rw-r--r--bootstrap/comments/frontend/init.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/init.js b/bootstrap/comments/frontend/init.js
index b6feb53..c0b53f8 100644
--- a/bootstrap/comments/frontend/init.js
+++ b/bootstrap/comments/frontend/init.js
@@ -247,4 +247,8 @@ HashOver.prototype.init = function ()
// Execute page load event handler manually
onLoad ();
+
+ const sortComments = document.getElementById('hashover-sort-select');
+ sortComments.selectedIndex = 2;
+ sortComments.onchange();
};