From 532d81b0207314aad593d1e398076915e53da7e9 Mon Sep 17 00:00:00 2001 From: tim b Date: Fri, 2 Jul 2010 09:24:17 -0700 Subject: add wavs, make embed a little nicer --- static/js/pichat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index bf8bdd9..7708e70 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -109,8 +109,8 @@ function linkReplace(url) { return "" + "" + "" - } else if (type == 'midi') { - return '<a href="'+linkUrl+'">'+url+'</a>' + } else if (type == 'midi' || type == 'wav') { + return '('+uri.file+')' } else return "" + url + ""; @@ -159,6 +159,10 @@ function getUriType(uri){ if (uri.path.substr(-4) == ".mid" || uri.path.substr(-5) == ".midi") return "midi" + + if (uri.path.substr(-4) == ".wav") + return "wav" + return "link"; } -- cgit v1.2.3-70-g09d2