Permalink
Browse files

Ensure video stops playing when "hide" clicked.

  • Loading branch information...
1 parent 412b1c3 commit eac376c02bc204bab30d94800a1ddf83771b8761 @matthewrobertson matthewrobertson committed with shlurbee Apr 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 r2/r2/public/static/js/reddit.js
@@ -215,8 +215,10 @@ function click_thing(elem) {
}
function hide_thing(elem) {
- $(elem).thing().fadeOut(function(elem) {
- $(this).toggleClass("hidden") });
+ $(elem).thing().fadeOut(function() {
+ $(this).toggleClass("hidden");
+ unexpando_child(elem);
+ });
};
function toggle_label (elem, callback, cancelback) {

0 comments on commit eac376c

Please sign in to comment.