function OLAuth() {
- this.authUrl = 'http://home.us.archive.org/~rkumar/olauth.php?id=' + br.bookId;
+ //this.authUrl = 'http://home.us.archive.org/~rkumar/olauth.php?id=' + br.bookId;
+ // XXXmang update to production
+ this.authUrl = 'http://ol-mang:8080/ia_auth/' + br.bookId;
+ //this.authUrl = 'http://openlibrary.org/ia_auth/' + br.bookId;
return this;
}
htmlStr += '<p>Please wait...</p>';
this.showPopup("#ddd", "#000", htmlStr);
- $.ajax({url:this.authUrl, dataType:'jsonp', jsonpCallback:'initCallback'});
+ $.ajax({url:this.authUrl, dataType:'jsonp', jsonpCallback:'olAuth.initCallback'});
}
OLAuth.prototype.showPopup = function(bgColor, textColor, msg) {
OLAuth.prototype.startPolling = function () {
var self = this;
this.poller=setInterval(function(){
- $.ajax({url:self.authUrl, dataType:'jsonp', jsonpCallback:'callback'});
+ $.ajax({url:self.authUrl, dataType:'jsonp', jsonpCallback:'olAuth.callback'});
},300000);
}