sm ms audio tag

This commit is contained in:
maxwell 2011-03-10 21:33:35 -08:00
parent c7362707b3
commit 5748639c08

View file

@ -10,6 +10,12 @@ var Stream = {
Diaspora.widgets.timeago.updateTimeAgo(); Diaspora.widgets.timeago.updateTimeAgo();
$stream.not(".show").delegate("a.show_post_comments", "click", Stream.toggleComments); $stream.not(".show").delegate("a.show_post_comments", "click", Stream.toggleComments);
//audio linx
$("a[target='_blank']").each(function(){
if($(this).attr('href').match(/\.mp3$/)) {
$(this).html("<audio src='" + this.href + "' controls='controls'>mom</audio>");}
});
// comment link form focus // comment link form focus
$stream.delegate(".focus_comment_textarea", "click", function(e){ $stream.delegate(".focus_comment_textarea", "click", function(e){