Skip to content

Commit

Permalink
FIX silverstripe#9 check for other url parameters on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
colymba committed Jan 17, 2013
1 parent 67958b4 commit 6039f6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascript/GridFieldBulkImageUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@

var url = $(this).data('url');
var cacheBuster = new Date().getTime();
if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
else cacheBuster = '?cacheBuster=' + cacheBuster;

$('form.bulkImageUploadUpdateForm').each(function(){
var data = $(this).serialize();

$.ajax({
url: url + '?cacheBuster=' + cacheBuster,
url: url + cacheBuster,
data: data,
type: "POST",
context: $(this)
Expand Down

0 comments on commit 6039f6c

Please sign in to comment.