From 5e8ce20fa4fdbc9b999ad2f31e304622f24d8b72 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Sun, 31 Mar 2013 04:07:41 -0700 Subject: [PATCH] Fire jQuery event when expanding expandos. --- r2/r2/public/static/js/reddit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/public/static/js/reddit.js b/r2/r2/public/static/js/reddit.js index 835594462..d6be60038 100644 --- a/r2/r2/public/static/js/reddit.js +++ b/r2/r2/public/static/js/reddit.js @@ -777,11 +777,13 @@ function expando_child(elem) { function(r) { child_cache[key] = r; expando.html($.unsafe(r)); + $(document).trigger('expando_thing', thing) }, false, "html"); } else { expando.html($.unsafe(child_cache[key])); + $(document).trigger('expando_thing', thing) } expando.show(); return false;