[-] BO : Could noty save ImportMatchs
This commit is contained in:
1 parent
43a60f1b57
commit
6610bd2067
1 file changed
+6
-6
+6
-6
@@ -37,12 +37,12 @@ $(document).ready(function(){
|
|||||||
matchFields += '&'+$(this).attr('id')+'='+$(this).attr('value');
|
matchFields += '&'+$(this).attr('id')+'='+$(this).attr('value');
|
||||||
});
|
});
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'POST',
|
||||||
url: 'index.php',
|
url: 'index.php',
|
||||||
async: false,
|
async: false,
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType : "json",
|
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)
|
success: function(jsonData)
|
||||||
{
|
{
|
||||||
$('#valueImportMatchs').append('<option id="'+jsonData.id+'" value="'+matchFields+'" selected="selected">'+newImportMatchs+'</option>');
|
$('#valueImportMatchs').append('<option id="'+jsonData.id+'" value="'+matchFields+'" selected="selected">'+newImportMatchs+'</option>');
|
||||||
@@ -62,12 +62,12 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
var idToLoad = $('select#valueImportMatchs option:selected').attr('id');
|
var idToLoad = $('select#valueImportMatchs option:selected').attr('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'POST',
|
||||||
url: 'index.php',
|
url: 'index.php',
|
||||||
async: false,
|
async: false,
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType : "json",
|
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)
|
success: function(jsonData)
|
||||||
{
|
{
|
||||||
var matchs = jsonData.matchs.split('|')
|
var matchs = jsonData.matchs.split('|')
|
||||||
@@ -87,12 +87,12 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
var idToDelete = $('select#valueImportMatchs option:selected').attr('id');
|
var idToDelete = $('select#valueImportMatchs option:selected').attr('id');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'POST',
|
||||||
url: 'index.php',
|
url: 'index.php',
|
||||||
async: false,
|
async: false,
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType : "json",
|
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)
|
success: function(jsonData)
|
||||||
{
|
{
|
||||||
$('select#valueImportMatchs option[id=\''+idToDelete+'\']').remove();
|
$('select#valueImportMatchs option[id=\''+idToDelete+'\']').remove();
|
||||||
|
|||||||
Reference in new issue
Block a user