got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls

This commit is contained in:
psychobunny
2013-05-01 21:26:47 +00:00
parent 6471109a25
commit b2bc967e9b
7 changed files with 31 additions and 24 deletions

View File

@@ -1,6 +1,8 @@
var socket,
config,
app = {};
app = {},
API_URL = null;
// todo: cleanup,etc
(function() {
@@ -8,6 +10,8 @@ var socket,
$.ajax({
url: '/config.json?v=' + new Date().getTime(),
success: function(data) {
API_URL = data.api_url;
config = data;
socket = io.connect('http://' + config.socket.address + config.socket.port? ':' + config.socket.port : '');