ajk ms escape period in ogg... also replace the parent so it is not inside an a tag

This commit is contained in:
Maxwell Salzberg 2011-03-10 23:52:22 -08:00
parent cdab6a1a84
commit 2b38fe820f

View file

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