diff options
Diffstat (limited to 'static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js')
| -rwxr-xr-x | static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js b/static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js index b02167b..ab2d773 100755 --- a/static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js +++ b/static/nickinterview/peoplewholiketochatalot dump.fm_files/pichat.js @@ -332,7 +332,7 @@ function buildMessageDiv(msg, isLoading) { var displayStyle = ((ImgsEnabled && LastMsgContainsImage) || (TextEnabled && !LastMsgContainsImage)) ? '' : ' style="display: none"'; return '<div class="msgDiv dump ' + loadingClass + containsImageClass + '" ' + msgId + displayStyle + '>' - + '<span class="nick"><b><a href="http://dump.fm/' + nick + ' ">' + nick + '</a></b>' + + '<span class="nick"><b><a href="/' + nick + ' ">' + nick + '</a></b>' + ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> ' + '</span>' + '<span class="content">' + builtContent + '</span>' @@ -342,7 +342,7 @@ function buildMessageDiv(msg, isLoading) { function buildUserDiv(user) { if (user.avatar) { return '<div class="username">' - + '<a href="http://dump.fm/' + escapeHtml(user.nick) + '" target="_blank">' + + '<a href="/' + escapeHtml(user.nick) + '" target="_blank">' + '<img src="' + user.avatar + '" width="50" height="50">' + escapeHtml(user.nick) + '</a></div>'; } else { @@ -358,7 +358,7 @@ function buildUserDiv(user) { function buildFav(f) { var h = '<div class="fav-note">' + '<img src="/static/img/thumbs/chatheartover.gif">' - + '<a href="http://dump.fm/' + f.from + '">' + f.from + '</a>' + + '<a href="/' + f.from + '">' + f.from + '</a>' + ' <span>just faved you!</span>' + '</div>'; return $(h); @@ -394,7 +394,7 @@ function updateFavs(fs) { function buildGrowlDataAndPopDatShit(msg) { var nick = escapeHtml(msg.nick); - nick = '<a href="http://dump.fm/' + nick + ' " style="color:pink">' + nick + '</a>:' + nick = '<a href="/' + nick + ' " style="color:pink">' + nick + '</a>:' var msg = buildMsgContent(msg.content) growl(nick, msg) } @@ -573,7 +573,7 @@ function refresh() { var onError = function(resp, textStatus, errorThrown) { var msg = $.trim(resp.responseText); if (msg == "UNKNOWN_ROOM") - location.href = "http://dump.fm"; + location.href = "/"; if (IsAdmin && window.console) { console.error(resp, textStatus, errorThrown); } @@ -1042,7 +1042,7 @@ function getMessageInfo(e){ var message = $(e).parents(".dump") var id = message.attr("id").substr(8) // cut "message-001" to "001" var nick = message.attr("nick") - var link = "http://dump.fm/p/" + nick + "/" + id + var link = "/p/" + nick + "/" + id var content = message.find(".linkify") if (!content.length) content = message.find(".content") var rawContent = content.html() @@ -1059,7 +1059,7 @@ Share = { }, "facebook": function(button){ var message = getMessageInfo(button) - var url = "http://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via + var url = "https://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via Share.openLink(url) }, "tumblr": function(button){ @@ -1386,7 +1386,7 @@ var Search = { }, 'doAjax': function(term) { - if (Domain == "http://dump.fm") { + if (Domain == "/") { $.ajax({ "dataType": "json", "url": "/cmd/search/" + term, @@ -1396,7 +1396,7 @@ var Search = { }) } else { // search main site via jsonp $("#search-script").remove() - $("head").append("<s"+"cript src='http://dump.fm/cmd/search/"+term+"?callback=Search.results' id='search-script'></s"+"cript>") + $("head").append("<s"+"cript src='/cmd/search/"+term+"?callback=Search.results' id='search-script'></s"+"cript>") } }, @@ -1431,7 +1431,7 @@ var Search = { results.forEach(function(r){ var url = r.url if (url.charAt(0) == '/') - url = 'http://dump.fm/images' + url + url = '/images' + url else url = 'http://' + url urls.push(url) @@ -1669,7 +1669,7 @@ function initChatMsgs() { var zoomlink = $('<a>') .attr({'href': img.attr('src') }) .addClass('msg-image-zoom') - .append($('<img>').attr('src', 'http://dump.fm/static/img/zoom.gif') + .append($('<img>').attr('src', '/static/img/zoom.gif') .addClass('zoom-icon')) .click(function() { window.open(img.attr('src')); return false; }); $(this).append(zoomlink); |
