ajk ms or is a single pipe

This commit is contained in:
Maxwell Salzberg 2011-03-11 00:16:17 -08:00
parent e2903a1251
commit 14033e7b5f

View file

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