ajk ms add ogg to the audio tag linker

This commit is contained in:
Maxwell Salzberg 2011-03-10 23:33:20 -08:00
parent a80179e77f
commit cdab6a1a84

View file

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