mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX: The cachebuster now only includes a questionmark, if there is none in the current url...
This commit is contained in:
parent
2cc9a999f9
commit
71790c52c1
@ -127,8 +127,11 @@
|
||||
});
|
||||
data.records = ids;
|
||||
|
||||
if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
|
||||
else cacheBuster = '?cacheBuster=' + cacheBuster;
|
||||
|
||||
$.ajax({
|
||||
url: url + '/' + action + '?cacheBuster=' + cacheBuster,
|
||||
url: url + '/' + action + cacheBuster,
|
||||
data: data,
|
||||
type: "POST",
|
||||
context: $(this)
|
||||
@ -183,8 +186,12 @@
|
||||
$(formsWithUpadtes).each(function(){
|
||||
cacheBuster = new Date().getTime() + '_' + $(this).attr('name');
|
||||
data = $(this).serialize();
|
||||
|
||||
if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
|
||||
else cacheBuster = '?cacheBuster=' + cacheBuster;
|
||||
|
||||
$.ajax({
|
||||
url: url + '?cacheBuster=' + cacheBuster,
|
||||
url: url + '/' + action + cacheBuster,
|
||||
data: data,
|
||||
type: "POST",
|
||||
context: $(this)
|
||||
|
Loading…
Reference in New Issue
Block a user