diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index 1306832fb56752d7a3578b855853ab59ec050b36..3ec3af2b1d578ab1fb3dd2cfe213c989d6b1fbbb 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -10,6 +10,12 @@ var Stream = { Diaspora.widgets.timeago.updateTimeAgo(); $stream.not(".show").delegate("a.show_post_comments", "click", Stream.toggleComments); + //audio linx + $("a[target='_blank']").each(function(){ + if($(this).attr('href').match(/\.mp3$/)) { + $(this).html("<audio src='" + this.href + "' controls='controls'>mom</audio>");} + }); + // comment link form focus $stream.delegate(".focus_comment_textarea", "click", function(e){