From: Michael Ang Date: Wed, 24 Nov 2010 00:16:53 +0000 (+0000) Subject: Defeat browser cache for initial call to OL loan auth X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=8f6d2ae64fed1f13d1a0ca66cb972c55eb1d4d42;hp=-c;p=bookreader.git Defeat browser cache for initial call to OL loan auth --- 8f6d2ae64fed1f13d1a0ca66cb972c55eb1d4d42 diff --git a/BookReaderIA/datanode/BookReaderJSIA.php b/BookReaderIA/datanode/BookReaderJSIA.php index 79c9895..50e5b42 100644 --- a/BookReaderIA/datanode/BookReaderJSIA.php +++ b/BookReaderIA/datanode/BookReaderJSIA.php @@ -535,7 +535,7 @@ OLAuth.prototype.init = function() { htmlStr += '

Please wait...

'; 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) {