From: Hannes Mannerheim Date: Sun, 5 Oct 2014 23:13:38 +0000 (+0200) Subject: makes ajax-repeat work with ajax loaded content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37becd210e724fff1097985dbcf78ff8c5fd724b;p=quix0rs-gnu-social.git makes ajax-repeat work with ajax loaded content --- diff --git a/js/util.js b/js/util.js index 1d01f72ecd..c300a0d93e 100644 --- a/js/util.js +++ b/js/util.js @@ -773,7 +773,7 @@ var SN = { // StatusNet * */ NoticeRepeat: function () { - $('.form_repeat').on('click', function (e) { + $('body').on('click', '.form_repeat', function (e) { e.preventDefault(); SN.U.NoticeRepeatConfirmation($(this)); @@ -1374,7 +1374,7 @@ var SN = { // StatusNet // Mismatch between id-based and name-based user/group links currently complicates // the lookup, since all our inline mentions contain the absolute links but the // UI links currently on the page use malleable names. - + return false; },