summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat.js')
-rwxr-xr-xstatic/js/pichat.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 488aa88..895cfc7 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -201,7 +201,7 @@ var SHA1 = {
// The root domain is used so that subdomains don't result in
// spurious extra urls (e.g. both dump.fm/nick and sub.dump.fm/nick)
window.RootDomain = location.href.match(/http:\/\/(\w)+\./)
- ? 'http://dump.fm/' : '/';
+ ? '/' : '/';
window.cache = {};
window.PendingMessages = {};
@@ -352,7 +352,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);
@@ -428,7 +428,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()
@@ -1214,7 +1214,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);
}
@@ -1837,7 +1837,7 @@ Search = {
},
'doAjax': function(term) {
- if (Domain == "http://dump.fm") {
+ if (Domain == "/") {
$.ajax({
"dataType": "json",
"url": "/cmd/search/" + term,
@@ -1847,7 +1847,7 @@ 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>")
}
},
@@ -1882,7 +1882,7 @@ 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)
@@ -1913,7 +1913,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){