Commits

Luke Plant committed 747f9f8

fixed fragile javascript dom traversal

Comments (0)

Files changed (1)

src/templates/pagestart.st

                         response: \$("#responseinput").val()
                       },
                       function(data) {
-                         // rather fragile way of find .response div...
-                         \$("#comment" + cid).parent().parent().find(".response").html('<div class="responseinner">' + data + ' <span class="responsename">— luke</span></div>');
+                         \$("#commentdiv" + cid.toString()).find(".response").html('<div class="responseinner">' + data + ' <span class="responsename">— luke</span></div>');
                       }
                     )
                     \$("#responsebox").hide();