🎨 Use non-type-coercing comparisons
[Sone.git] / src / main / resources / templates / knownSones.html
index 4ace659..c0bb35b 100644 (file)
@@ -7,9 +7,9 @@
                $(document).ready(function() {
                        $("select[name=sort]").change(function() {
                                value = $(this).val();
-                               if ((value == "activity") || (value == "posts") || (value == "images")) {
+                               if ((value === "activity") || (value === "posts") || (value === "images")) {
                                        $("select[name=order]").val("desc");
-                               } else if (value == "name") {
+                               } else if (value === "name") {
                                        $("select[name=order]").val("asc");
                                }
                        });
@@ -48,6 +48,8 @@
                                                <%/if>
                                                <option value="new"<%if filter|match value=="new"> selected="selected"<%/if>><%= Page.KnownSones.Filter.New|l10n|html></option>
                                                <option value="not-new"<%if filter|match value=="not-new"> selected="selected"<%/if>><%= Page.KnownSones.Filter.NotNew|l10n|html></option>
+                                               <option value="own"<%if filter|match value=="own"> selected="selected"<%/if>><%= Page.KnownSones.Filter.Own|l10n|html></option>
+                                               <option value="not-own"<%if filter|match value=="not-own"> selected="selected"<%/if>><%= Page.KnownSones.Filter.NotOwn|l10n|html></option>
                                        </select>
                                </div>
                        <%/if>