# HG changeset patch # User Atul Varma # Date 1277509672 25200 # Node ID 2451de0b2e882431bd3888d860a688732d65033b # Parent da287d1b940578bf856762f01e5492adca4e70a8 Changed ajax urls to be relative diff -r da287d1b9405 -r 2451de0b2e88 static-files/index.js --- a/static-files/index.js Fri Jun 25 16:06:35 2010 -0700 +++ b/static-files/index.js Fri Jun 25 16:47:52 2010 -0700 @@ -51,7 +51,7 @@ var self = this; if (Config.value.token) { req = jQuery.getJSON( - "/profile", + "profile", {token: Config.value.token}, function(data, textStatus) { // TODO: Might need to add a failure callback too? @@ -165,7 +165,7 @@ event.preventDefault(); $("#login .error").hide(); jQuery.postJSON( - "/challenge/request", + "challenge/request", {email: $(this).find("#email").val() }, function(success, data) { if (success) { @@ -189,7 +189,7 @@ }; jQuery.postJSON( - "/profile", + "profile", {token: Config.value.token, contents: contents}, function(success, data) { @@ -206,7 +206,7 @@ verify = verify[1]; Config.setValue({state: "wait-for-verify"}); jQuery.postJSON( - "/challenge/respond", + "challenge/respond", {token: verify}, function(success, data) { window.location.hash = "";