Duplicate IDs are not allowed in HTML and do make problems. Use classes.
[Sone.git] / src / main / resources / templates / include / head.html
index 7798af4..50cf77e 100644 (file)
@@ -14,7 +14,7 @@
                /* these functions are necessary for updating Sone statuses. */
                $(document).ready(function() {
                        $("#sone .sone").each(function() {
-                               watchSone($(this).attr("id"));
+                               watchSone($(this).find(".id").text());
                        });
                });
        </script>