ajk ms escape period in ogg... also replace the parent so it is not inside an a tag
This commit is contained in:
parent
cdab6a1a84
commit
2b38fe820f
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ 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$||.ogg$/)) {
|
if($(this).attr('href').match(/\.mp3$||\.ogg$/)) {
|
||||||
$(this).html("<audio src='" + this.href + "' controls='controls'>mom</audio>");}
|
$(this).parent().html("<audio src='" + this.href + "' controls='controls'>mom</audio>");}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue