Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure video stops playing when "hide" clicked.

  • Loading branch information...
commit eac376c02bc204bab30d94800a1ddf83771b8761 1 parent 412b1c3
@matthewrobertson matthewrobertson authored shlurbee committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 r2/r2/public/static/js/reddit.js
View
6 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.