Ensure video stops playing when "hide" clicked.

Fixes reddit/reddit#233.
This commit is contained in:
Matthew Robertson
2012-04-29 18:30:11 -07:00
committed by shlurbee
parent 412b1c3e55
commit eac376c02b

View File

@@ -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) {