Scope media pausing to the open conversation

// FREEBIE
This commit is contained in:
lilia 2016-06-30 12:51:13 -07:00
parent d5b003a15e
commit 5bff1d2cab

View file

@ -40,10 +40,7 @@
open: function(conversation) {
var id = 'conversation-' + conversation.cid;
if (id !== this.el.firstChild.id) {
this.$("video").each(function() {
this.pause();
});
this.$("audio").each(function() {
this.$el.first().find('video, audio').each(function() {
this.pause();
});
var $el = this.$('#'+id);