Fire jQuery new thing events for thing insertions as well.

This commit is contained in:
Max Goodman
2013-03-31 04:15:57 -07:00
committed by Neil Williams
parent 5e8ce20fa4
commit 00273cdf53

View File

@@ -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;
});
};