Forgot to change 'freebase-extension' to just 'freebase' in a few places. Fixed issue 161: Authorize error when trying to Sign In before loading to Freebase
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1607 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
69b7d34e09
commit
6cefdaf53e
@ -69,7 +69,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
signin : function(success, provider, width, height) {
|
signin : function(success, provider, width, height) {
|
||||||
var newwin = window.Sign.popup("/command/freebase-extension/authorize/" + provider, width, height);
|
var newwin = window.Sign.popup("/command/freebase/authorize/" + provider, width, height);
|
||||||
|
|
||||||
if (newwin !== null) {
|
if (newwin !== null) {
|
||||||
newwin.opener = window;
|
newwin.opener = window;
|
||||||
@ -80,7 +80,7 @@
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
} else {
|
} else {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/command/freebase-extension/check-authorization/" + provider,
|
url: "/command/freebase/check-authorization/" + provider,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
window.user = data;
|
window.user = data;
|
||||||
@ -105,7 +105,7 @@
|
|||||||
|
|
||||||
signout : function(success,provider) {
|
signout : function(success,provider) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/command/freebase-extension/deauthorize/" + provider,
|
url: "/command/freebase/deauthorize/" + provider,
|
||||||
success: function() {
|
success: function() {
|
||||||
if (typeof success == 'undefined') {
|
if (typeof success == 'undefined') {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -130,6 +130,6 @@ public class AuthorizeCommand extends Command {
|
|||||||
throw new RuntimeException("neither the 'host' nor 'referer' headers were present in the HTTP response, I can't determine what URL Google Refine is listening to.");
|
throw new RuntimeException("neither the 'host' nor 'referer' headers were present in the HTTP response, I can't determine what URL Google Refine is listening to.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "http://" + host + "/command/freebase-extension/authorize/" + provider.getHost();
|
return "http://" + host + "/command/freebase/authorize/" + provider.getHost();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user