mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX #9 check for other url parameters
appends cachebuster parameter if other GET vars exsit on the url
This commit is contained in:
parent
eb944b6aa8
commit
fa0ace0b55
@ -85,9 +85,13 @@
|
|||||||
//@TODO execute 'doFinish' even when no form have been changed
|
//@TODO execute 'doFinish' even when no form have been changed
|
||||||
$(formsWithUpadtes).each(function(){
|
$(formsWithUpadtes).each(function(){
|
||||||
cacheBuster = new Date().getTime() + '_' + $(this).attr('name');
|
cacheBuster = new Date().getTime() + '_' + $(this).attr('name');
|
||||||
|
if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
|
||||||
|
else cacheBuster = '?cacheBuster=' + cacheBuster;
|
||||||
|
|
||||||
data = $(this).serialize();
|
data = $(this).serialize();
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url + '?cacheBuster=' + cacheBuster,
|
url: url + cacheBuster,
|
||||||
data: data,
|
data: data,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
context: $(this)
|
context: $(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user