use el.on("click") to load more comments and prevent default

This commit is contained in:
Martin Zimmermann 2014-05-27 23:18:14 +02:00
parent d0a50c7905
commit 94ee6a6981

View File

@ -67,8 +67,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
entrypoint.append(el); entrypoint.append(el);
$("a.load_hidden", el).toggle("click", $("a.load_hidden", el).on("click", function() {
function() {
el.remove(); el.remove();
api.fetch($("#isso-thread").getAttribute("data-isso-id"), api.fetch($("#isso-thread").getAttribute("data-isso-id"),
config["reveal-on-click"], config["max-comments-nested"], config["reveal-on-click"], config["max-comments-nested"],