mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Ensure video stops playing when "hide" clicked.
Fixes reddit/reddit#233.
This commit is contained in:
committed by
shlurbee
parent
412b1c3e55
commit
eac376c02b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user