]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
makes ajax-repeat work with ajax loaded content
authorHannes Mannerheim <h@nnesmannerhe.im>
Sun, 5 Oct 2014 23:13:38 +0000 (01:13 +0200)
committerHannes Mannerheim <h@nnesmannerhe.im>
Sun, 5 Oct 2014 23:13:38 +0000 (01:13 +0200)
js/util.js

index 1d01f72ecd27a472368d03beccd4ab71399ffdd1..c300a0d93edf792547f0cbd4ff22114c2682b41a 100644 (file)
@@ -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;
         },