mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
michael: #1405 - Fix ThumbnailStrip caching
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46735 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
98b6ffad3d
commit
651196e36c
@ -30,7 +30,7 @@ ThumbnailStripField.prototype = {
|
||||
ajaxGetFiles: function(folderID,callback) {
|
||||
if(!callback) callback = this.reapplyBehaviour.bind(this);
|
||||
this.innerHTML = '<span style="float: left">Loading...</span>'
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user