mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Fire jQuery new thing events for thing insertions as well.
This commit is contained in:
committed by
Neil Williams
parent
5e8ce20fa4
commit
00273cdf53
@@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user