FIX_CD_AC_NO_HIDE
This commit is contained in:
parent
4bfd58a0e5
commit
385ae41f08
@ -2080,6 +2080,9 @@
|
|||||||
|
|
||||||
if ($(this).is(':checked')) {
|
if ($(this).is(':checked')) {
|
||||||
// Hide all
|
// Hide all
|
||||||
|
$('[name="cd_ac_no_for_child[]"]').val('');
|
||||||
|
$('[id^="cd_current_balance_"]').val('');
|
||||||
|
|
||||||
$('[name="cd_ac_no_for_child[]"]').hide();
|
$('[name="cd_ac_no_for_child[]"]').hide();
|
||||||
$('[id^="cd_current_balance_"]').hide();
|
$('[id^="cd_current_balance_"]').hide();
|
||||||
|
|
||||||
@ -2087,6 +2090,10 @@
|
|||||||
$('#cd_ac_no_' + uniqueid).show();
|
$('#cd_ac_no_' + uniqueid).show();
|
||||||
$('#cd_current_balance_' + uniqueid).show();
|
$('#cd_current_balance_' + uniqueid).show();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
$('[name="cd_ac_no_for_child[]"]').val('');
|
||||||
|
$('[id^="cd_current_balance_"]').val('');
|
||||||
|
|
||||||
// Show all back
|
// Show all back
|
||||||
$('[name="cd_ac_no_for_child[]"]').show();
|
$('[name="cd_ac_no_for_child[]"]').show();
|
||||||
$('[id^="cd_current_balance_"]').show();
|
$('[id^="cd_current_balance_"]').show();
|
||||||
@ -3365,8 +3372,16 @@
|
|||||||
$('input[name="co_ter_premium[]"]').addClass('readonly-select');
|
$('input[name="co_ter_premium[]"]').addClass('readonly-select');
|
||||||
$('#co_ter_premium_' + value).removeClass('readonly-select');
|
$('#co_ter_premium_' + value).removeClass('readonly-select');
|
||||||
|
|
||||||
$('input[name="cd_ac_no_for_child[]"]').addClass('readonly-select');
|
|
||||||
$('#cd_ac_no_' + value).removeClass('readonly-select');
|
$('[name="cd_ac_no_for_child[]"]').hide();
|
||||||
|
$('[id^="cd_current_balance_"]').hide();
|
||||||
|
|
||||||
|
// Show only current one
|
||||||
|
$('#cd_ac_no_' + value).show();
|
||||||
|
$('#cd_current_balance_' + value).show();
|
||||||
|
|
||||||
|
// $('input[name="cd_ac_no_for_child[]"]').addClass('readonly-select');
|
||||||
|
// $('#cd_ac_no_' + value).removeClass('readonly-select');
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3722,11 +3737,11 @@
|
|||||||
|
|
||||||
const selectedValue = $(currentSelect).val();
|
const selectedValue = $(currentSelect).val();
|
||||||
|
|
||||||
if (selectedValue) {
|
// if (selectedValue) {
|
||||||
$('.follow_insurer_cd').not(currentSelect).prop('disabled', true);
|
// $('.follow_insurer_cd').not(currentSelect).prop('disabled', true);
|
||||||
} else {
|
// } else {
|
||||||
$('.follow_insurer_cd').prop('disabled', false);
|
// $('.follow_insurer_cd').prop('disabled', false);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeAllColumnsExceptFirst(tableId) {
|
function removeAllColumnsExceptFirst(tableId) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user