From 7c66f2232f667f1805b94507483299efa088291b Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Sun, 13 Feb 2011 01:09:44 -0500 Subject: Add root domain into pichat.js --- static/js/pichat.js | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index 884e01f..3cfb85b 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -5,11 +5,16 @@ expires='; expires='+date.toUTCString();} var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i' + text + ' '; + return ' ' + text + ' '; } function recipientReplace(atText, recips) { @@ -161,7 +166,7 @@ function recipientReplace(atText, recips) { } if (matchedRecip) { - return space + '@' + matchedRecip + ''; + return space + '@' + matchedRecip + ''; } else { return space + atText; } @@ -369,7 +374,7 @@ function buildMessageDiv(msg, opts) { var displayStyle = ((ImgsEnabled && LastMsgContainsImage) || (TextEnabled && !LastMsgContainsImage)) ? '' : ' style="display: none"'; return '
' - + '' + nick + '' + + '' + nick + '' + ' ' + '' + '' + builtContent + '' @@ -379,13 +384,13 @@ function buildMessageDiv(msg, opts) { function buildUserDiv(user) { if (user.avatar) { return ''; } else { return ''; } } @@ -394,8 +399,8 @@ function buildUserDiv(user) { function buildFav(f) { var h = '
' - + '' - + '' + f.from + '' + + '' + + '' + f.from + '' + ' just faved you!' + '
'; return $(h); @@ -429,7 +434,7 @@ function updateFavs(fs) { function buildGrowlDataAndPopDatShit(msg) { var nick = escapeHtml(msg.nick); - nick = '' + nick + ':' + nick = '' + nick + ':' var msg = buildMsgContent(msg.content) growl(nick, msg) } -- cgit v1.2.3-70-g09d2