From 651196e36c34093e2c3e2ee233e08eac2213b2a6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 13 Dec 2007 01:51:17 +0000 Subject: [PATCH] michael: #1405 - Fix ThumbnailStrip caching git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46735 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/ThumbnailStripField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/ThumbnailStripField.js b/javascript/ThumbnailStripField.js index 401c6536..5662ab3c 100755 --- a/javascript/ThumbnailStripField.js +++ b/javascript/ThumbnailStripField.js @@ -30,7 +30,7 @@ ThumbnailStripField.prototype = { ajaxGetFiles: function(folderID,callback) { if(!callback) callback = this.reapplyBehaviour.bind(this); this.innerHTML = 'Loading...' - var ajaxURL = this.helperURLBase() + '&methodName='+this.updateMethod+'&folderID=' + folderID + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''); + var ajaxURL = this.helperURLBase() + '&methodName='+this.updateMethod+'&folderID=' + folderID + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '') + '&cacheKillerDate=' + parseInt((new Date()).getTime()) + '&cacheKillerRand=' + parseInt(10000*Math.random()); new Ajax.Updater(this, ajaxURL, { method : 'get', onComplete : callback,