🎨 Replace “var” with “const” or “let”
[Sone.git] / src / main / resources / templates / knownSones.html
index a224a68..21c6be2 100644 (file)
@@ -6,7 +6,7 @@
 
                $(document).ready(function() {
                        $("select[name=sort]").change(function() {
-                               value = $(this).val();
+                               const value = $(this).val();
                                if ((value === "activity") || (value === "posts") || (value === "images")) {
                                        $("select[name=order]").val("desc");
                                } else if (value === "name") {