Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fire jQuery new thing events for thing insertions as well.

  • Loading branch information...
commit 00273cdf53fa40003897c3d6144c6b878dfbe895 1 parent 5e8ce20
Max Goodman authored spladug committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  r2/r2/public/static/js/jquery.reddit.js
View
2  r2/r2/public/static/js/jquery.reddit.js
@@ -526,7 +526,9 @@ $.insert_things = function(things, append) {
s = s.append($.unsafe(data.content)).children(".thing:last");
else
s = s.prepend($.unsafe(data.content)).children(".thing:first");
+
thing_init_func(s.hide().show());
+ $(document).trigger('new_thing', s)
return s;
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.