X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FknownSones.html;h=260a32109892db22eeb3e0568710523bae2e6cde;hb=0df5e91852f737d760c5a9f54c5667309fbadcc2;hp=fde1060abaffc2bda6fe4b9017205a2135e3334f;hpb=4cd31c743766c64dbdeade933dd97fe6e013b14a;p=Sone.git diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index fde1060..260a321 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -7,12 +7,15 @@ $(document).ready(function() { $("select[name=sort]").change(function() { value = $(this).val(); - if (value == "activity") { + if ((value == "activity") || (value == "posts")) { $("select[name=order]").val("desc"); } else if (value == "name") { $("select[name=order]").val("asc"); } }); + $("#sort-options select").change(function() { + this.form.submit(); + }); }); @@ -26,6 +29,7 @@ + + + + + + +
+
+ + + + +
+
+
<%= page|store key=pageParameter> <%include include/pagination.html>