From 4e50a860ebed89cd59b53bac7a5af16f4b59e941 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Mon, 19 Jul 2010 00:15:11 -0400 Subject: fix search not workings... i guess newer browsers have String.prototype.trim already --- static/js/pichat.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index ef34015..38e5405 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -49,6 +49,8 @@ isEmptyObject = function(obj) { return true } +String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g,'') } + function isCSSPropertySupported(prop){ return prop in document.body.style } -- cgit v1.2.3-70-g09d2