Defeat browser cache for initial call to OL loan auth
authorMichael Ang <mang@archive.org>
Wed, 24 Nov 2010 00:16:53 +0000 (00:16 +0000)
committerMichael Ang <mang@archive.org>
Wed, 24 Nov 2010 00:16:53 +0000 (00:16 +0000)
BookReaderIA/datanode/BookReaderJSIA.php

index 79c9895..50e5b42 100644 (file)
@@ -535,7 +535,7 @@ OLAuth.prototype.init = function() {
     htmlStr    +=  '<p>Please wait...</p>';
 
     this.showPopup("#ddd", "#000", htmlStr);
-    $.ajax({url:this.authUrl, dataType:'jsonp', jsonpCallback:'olAuth.initCallback'});
+    $.ajax({url:this.authUrl + '?rand='+Math.random(), dataType:'jsonp', jsonpCallback:'olAuth.initCallback'});
 }
 
 OLAuth.prototype.showPopup = function(bgColor, textColor, msg) {