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 From 897d66dc9dd274cfc6d21dc78d90952b09e27909 Mon Sep 17 00:00:00 2001 From: tim b Date: Fri, 2 Jul 2010 09:26:37 -0700 Subject: add wavs, make embed a little nicer --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index 7708e70..add7bdb 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -110,7 +110,7 @@ function linkReplace(url) { "" + "" } else if (type == 'midi' || type == 'wav') { - return '('+uri.file+')' + return ''+uri.file+'' } else return "" + url + ""; -- cgit v1.2.3-70-g09d2 From 6892c44d545d6e70671c7e680a373cc42e399ecc Mon Sep 17 00:00:00 2001 From: tim b Date: Fri, 2 Jul 2010 09:28:40 -0700 Subject: add wavs, make embed a little nicer --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index add7bdb..40ff9dd 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -110,7 +110,7 @@ function linkReplace(url) { "" + "" } else if (type == 'midi' || type == 'wav') { - return ''+uri.file+'' + return ' '+uri.file+'' } else return "" + url + ""; -- cgit v1.2.3-70-g09d2 From 7643767be4f7bd852efe67aa203cd96b091403de Mon Sep 17 00:00:00 2001 From: tim b Date: Fri, 2 Jul 2010 09:43:09 -0700 Subject: looping off, god --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index 40ff9dd..91e44a7 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -110,7 +110,7 @@ function linkReplace(url) { "" + "" } else if (type == 'midi' || type == 'wav') { - return ' '+uri.file+'' + return ' '+uri.file+'' } else return "" + url + ""; -- cgit v1.2.3-70-g09d2