From 6610bd20673ab0e3bf59be0eb08b630970c489fb Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 3 Oct 2013 11:15:03 +0200 Subject: [PATCH] [-] BO : Could noty save ImportMatchs --- js/adminImport.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/adminImport.js b/js/adminImport.js index 3fcf221d5..1939392a6 100644 --- a/js/adminImport.js +++ b/js/adminImport.js @@ -37,12 +37,12 @@ $(document).ready(function(){ matchFields += '&'+$(this).attr('id')+'='+$(this).attr('value'); }); $.ajax({ - type: 'GET', + type: 'POST', url: 'index.php', async: false, cache: false, dataType : "json", - data: 'ajax=1&action=saveImportMatchs&skip='+$('input[name=skip]').attr('value')+'&newImportMatchs='+newImportMatchs+matchFields+'&tab=AdminImport&token='+token, + data: 'ajax=1&action=saveImportMatchs&tab=AdminImport&token=' + token + '&skip=' + $('input[name=skip]').attr('value') + '&newImportMatchs=' + newImportMatchs + matchFields, success: function(jsonData) { $('#valueImportMatchs').append(''); @@ -62,12 +62,12 @@ $(document).ready(function(){ var idToLoad = $('select#valueImportMatchs option:selected').attr('id'); $.ajax({ - type: 'GET', + type: 'POST', url: 'index.php', async: false, cache: false, dataType : "json", - data: 'ajax=1&action=loadImportMatchs&idImportMatchs='+idToLoad+'&tab=AdminImport&token='+token, + data: 'ajax=1&action=loadImportMatchs&tab=AdminImport&token=' + token + '&idImportMatchs=' + idToLoad, success: function(jsonData) { var matchs = jsonData.matchs.split('|') @@ -87,12 +87,12 @@ $(document).ready(function(){ var idToDelete = $('select#valueImportMatchs option:selected').attr('id'); $.ajax({ - type: 'GET', + type: 'POST', url: 'index.php', async: false, cache: false, dataType : "json", - data: 'ajax=1&action=deleteImportMatchs&idImportMatchs='+idToDelete+'&tab=AdminImport&token='+token, + data: 'ajax=1&action=deleteImportMatchs&tab=AdminImport&token=' + token + '&idImportMatchs=' + idToDelete , success: function(jsonData) { $('select#valueImportMatchs option[id=\''+idToDelete+'\']').remove();