Try fix bugs on configs wallet paliers table

This commit is contained in:
Djery-Tom 2022-04-15 08:26:04 +01:00
parent 9b0644b116
commit 9dcf58a9a1
3 changed files with 30 additions and 30 deletions

View File

@ -855,7 +855,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions3 + '</td>' +
'</tr>';
$("#agent_depot_wallet").append(row);
$("#agent_depot_wallet tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_depot_wallet tbody tr").eq(index + 1).find(".add3, .edit3").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -897,7 +897,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add3, .edit3").toggle();
$(".new3").removeAttr("disabled");
}
});
@ -913,7 +913,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add3, .edit3").toggle();
$(".new3").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -941,7 +941,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions4 + '</td>' +
'</tr>';
$("#agent_cash_cash").append(row);
$("#agent_cash_cash tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_cash_cash tbody tr").eq(index + 1).find(".add4, .edit4").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -983,7 +983,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add4, .edit4").toggle();
$(".new4").removeAttr("disabled");
}
});
@ -999,7 +999,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add4, .edit4").toggle();
$(".new4").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -1027,7 +1027,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions6 + '</td>' +
'</tr>';
$("#agent_depot_autre_wallet").append(row);
$("#agent_depot_autre_wallet tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_depot_autre_wallet tbody tr").eq(index + 1).find(".add6, .edit6").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -1069,7 +1069,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add6, .edit6").toggle();
$(".new6").removeAttr("disabled");
}
});
@ -1085,7 +1085,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add6, .edit6").toggle();
$(".new6").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -1115,7 +1115,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions9 + '</td>' +
'</tr>';
$("#agent_depot_wallet_national").append(row);
$("#agent_depot_wallet_national tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_depot_wallet_national tbody tr").eq(index + 1).find(".add9, .edit9").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -1157,7 +1157,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add9, .edit9").toggle();
$(".new9").removeAttr("disabled");
}
});
@ -1173,7 +1173,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add9, .edit9").toggle();
$(".new9").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -1201,7 +1201,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions99 + '</td>' +
'</tr>';
$("#agent_depot_autre_wallet_national").append(row);
$("#agent_depot_autre_wallet_national tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_depot_autre_wallet_national tbody tr").eq(index + 1).find(".add99, .edit99").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -1243,7 +1243,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add99, .edit99").toggle();
$(".new99").removeAttr("disabled");
}
});
@ -1259,7 +1259,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add99, .edit99").toggle();
$(".new99").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -1288,7 +1288,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions11 + '</td>' +
'</tr>';
$("#agent_cash_cash_national").append(row);
$("#agent_cash_cash_national tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#agent_cash_cash_national tbody tr").eq(index + 1).find(".add11, .edit11").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -1330,7 +1330,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add11, .edit11").toggle();
$(".new11").removeAttr("disabled");
}
});
@ -1346,7 +1346,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="0" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add11, .edit11").toggle();
$(".new11").attr("disabled", "disabled");
});
// Delete row on delete button click

View File

@ -386,7 +386,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions2 + '</td>' +
'</tr>';
$("#user_wallet_cash").append(row);
$("#user_wallet_cash tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#user_wallet_cash tbody tr").eq(index + 1).find(".add2, .edit2").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -428,7 +428,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add2, .edit2").toggle();
$(".new2").removeAttr("disabled");
}
});
@ -444,7 +444,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add2, .edit2").toggle();
$(".new2").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -473,7 +473,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions8 + '</td>' +
'</tr>';
$("#user_wallet_cash_national").append(row);
$("#user_wallet_cash_national tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#user_wallet_cash_national tbody tr").eq(index + 1).find(".add8, .edit8").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -515,7 +515,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add8, .edit8").toggle();
$(".new8").removeAttr("disabled");
}
});
@ -531,7 +531,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add8, .edit8").toggle();
$(".new8").attr("disabled", "disabled");
});
// Delete row on delete button click

View File

@ -382,7 +382,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions1 + '</td>' +
'</tr>';
$("#user_wallet_wallet").append(row);
$("#user_wallet_wallet tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#user_wallet_wallet tbody tr").eq(index + 1).find(".add1, .edit1").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -424,7 +424,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add1, .edit1").toggle();
$(".new1").removeAttr("disabled");
}
});
@ -440,7 +440,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add1, .edit1").toggle();
$(".new1").attr("disabled", "disabled");
});
// Delete row on delete button click
@ -471,7 +471,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
'<td> ' + actions7 + '</td>' +
'</tr>';
$("#user_wallet_wallet_national").append(row);
$("#user_wallet_wallet_national tbody tr").eq(index + 1).find(".add, .edit").toggle();
$("#user_wallet_wallet_national tbody tr").eq(index + 1).find(".add7, .edit7").toggle();
$('[data-toggle="tooltip"]').tooltip();
});
// Add row on add button click
@ -513,7 +513,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
input.each(function () {
$(this).parent("td").html($(this).val());
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add7, .edit7").toggle();
$(".new7").removeAttr("disabled");
}
});
@ -529,7 +529,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
if (index == 3)
$(this).html('<input type="number" class="form-control" min="1" value="' + $(this).text() + '">');
});
$(this).parents("tr").find(".add, .edit").toggle();
$(this).parents("tr").find(".add7, .edit7").toggle();
$(".new7").attr("disabled", "disabled");
});
// Delete row on delete button click