X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FknownSones.html;h=72bc80a7e4a26e97d3d64ebc8abd4b1d788d4d88;hb=0ce0d62894739d3769490d9fde6fa98561b3dfae;hp=fde1060abaffc2bda6fe4b9017205a2135e3334f;hpb=9a254c2af6f176c8a95ef6accfdb288ad159d125;p=Sone.git diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index fde1060..72bc80a 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") || (value == "images")) { $("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,8 @@ + + + + + + +
+
+ + + + +
+
+
<%= page|store key=pageParameter> <%include include/pagination.html>