[-] FO : Apply changes from commit 1.4.X 1d0d59845b5f9cb9333a89e60523ab41df076d89 no cache for POST queries

This commit is contained in:
gRoussac
2013-01-23 15:48:15 +01:00
parent f8d5b33251
commit a48d2668d3
20 changed files with 144 additions and 69 deletions
+13 -2
View File
@@ -27,6 +27,16 @@ $(document).ready(function() {
initTableDnD();
});
function objToString(obj) {
var str = '';
for (var p in obj) {
if (obj.hasOwnProperty(p)) {
str += p + '=' + obj[p] + '&';
}
}
return str;
}
function initTableDnD(table)
{
if (typeof(table) == 'undefined')
@@ -119,9 +129,10 @@ function initTableDnD(table)
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
async: false,
url: currentIndex + '&token=' + token + '&' + $.tableDnD.serialize(),
data: params,
url: currentIndex + '&token=' + token + '&' + 'rand=' + new Date().getTime(),
data: $.tableDnD.serialize() + '&' + objToString(params) ,
success: function(data) {
var nodrag_lines = $(tableDrag).find('tr:not(".nodrag")');