From 2b38fe820f613792f67fe754501c48726d62b7c8 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 10 Mar 2011 23:52:22 -0800 Subject: [PATCH] ajk ms escape period in ogg... also replace the parent so it is not inside an a tag --- public/javascripts/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index e3432a3cf..84a2bc0c6 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -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("");} + if($(this).attr('href').match(/\.mp3$||\.ogg$/)) { + $(this).parent().html("");} });