ajk ms only grab stream links

This commit is contained in:
Maxwell Salzberg 2011-03-11 00:01:01 -08:00
parent 2b38fe820f
commit 189b7fb5ac

View file

@ -11,7 +11,7 @@ var Stream = {
Diaspora.widgets.timeago.updateTimeAgo();
$stream.not(".show").delegate("a.show_post_comments", "click", Stream.toggleComments);
//audio linx
$("a[target='_blank']").each(function(){
$(".stream a[target='_blank']").each(function(){
if($(this).attr('href').match(/\.mp3$||\.ogg$/)) {
$(this).parent().html("<audio src='" + this.href + "' controls='controls'>mom</audio>");}
});