From 02b4185b2e77dc5cbb367514bf58c8bd72d64ee6 Mon Sep 17 00:00:00 2001 From: tim b Date: Mon, 14 Jun 2010 22:02:41 -0700 Subject: annoying caps --- static/js/pichat.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index c19ff6b..8245582 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -68,7 +68,25 @@ function getImagesAsArray(text) { function linkify(text) { LastMsgContainsImage = false - return text.replace(URLRegex, linkReplace); + text = annoyingCaps(text) + text = text.replace(URLRegex, linkReplace); + return text +} + +function annoyingCaps(text){ + var chunks = text.split(" ") + console.log(chunks) + for(var i=0; i Date: Mon, 14 Jun 2010 22:03:50 -0700 Subject: annoying caps --- static/js/pichat.js | 1 - 1 file changed, 1 deletion(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index 8245582..3659d37 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -75,7 +75,6 @@ function linkify(text) { function annoyingCaps(text){ var chunks = text.split(" ") - console.log(chunks) for(var i=0; i Date: Mon, 14 Jun 2010 22:33:00 -0700 Subject: annoying caps --- static/js/pichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index 3659d37..fefaca1 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -47,7 +47,8 @@ function isCSSPropertySupported(prop){ return prop in document.body.style } function escapeHtml(txt) { if (!txt) { return ""; } - else { return $("").text(txt).html(); } + txt = annoyingCaps(txt) + return $("").text(txt).html() } URLRegex = /((\b(http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi; @@ -68,7 +69,6 @@ function getImagesAsArray(text) { function linkify(text) { LastMsgContainsImage = false - text = annoyingCaps(text) text = text.replace(URLRegex, linkReplace); return text } -- cgit v1.2.3-70-g09d2 From 97351343f3ee23a7449a0c4db9f580f2f03e9e38 Mon Sep 17 00:00:00 2001 From: tim b Date: Mon, 14 Jun 2010 23:09:48 -0700 Subject: annoying caps off --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index fefaca1..62cf52e 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -47,7 +47,7 @@ function isCSSPropertySupported(prop){ return prop in document.body.style } function escapeHtml(txt) { if (!txt) { return ""; } - txt = annoyingCaps(txt) +// txt = annoyingCaps(txt) return $("").text(txt).html() } -- cgit v1.2.3-70-g09d2