Mercurial > summit-idp
changeset 23:2451de0b2e88
Changed ajax urls to be relative
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Fri, 25 Jun 2010 16:47:52 -0700 |
parents | da287d1b9405 |
children | d2ba5eae2ca2 |
files | static-files/index.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 = "";