CatBancos CveSATBancos, EntregaAlamcen desactivar requiered de fecha de caducidad cuando no este marcado el check
This commit is contained in:
@@ -1163,16 +1163,36 @@
|
||||
|
||||
}
|
||||
|
||||
function fncCantidad(checkbox, numeroMax, idTbCantidadF) {
|
||||
function fncCantidad(checkbox, numeroMax, idTbCantidadF, rfv) {
|
||||
|
||||
var $textbox = $('#' + idTbCantidadF);
|
||||
|
||||
if ($(checkbox).is(':checked')) {
|
||||
$textbox.val(numeroMax);
|
||||
activarValidatorPorId(rfv);
|
||||
} else {
|
||||
$textbox.val(0);
|
||||
desactivarValidatorPorId(rfv);
|
||||
}
|
||||
}
|
||||
|
||||
function desactivarValidatorPorId(idValidatorCliente) {
|
||||
var validator = document.getElementById(idValidatorCliente);
|
||||
if (validator) {
|
||||
validator.enabled = false;
|
||||
validator.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function activarValidatorPorId(idValidatorCliente) {
|
||||
var validator = document.getElementById(idValidatorCliente);
|
||||
if (validator) {
|
||||
validator.enabled = true;
|
||||
validator.style.display = "inline";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user