FEAT_SWAL_FOR_ROW_REMOVE_NONEB

This commit is contained in:
Srinivas-Saravanan 2025-05-29 10:48:31 +05:30
parent 193591f482
commit c8627c8724

View File

@ -2623,6 +2623,8 @@
if (rfq_or_qcr == 2) { if (rfq_or_qcr == 2) {
$("#openQCR").hide(); $("#openQCR").hide();
} }
} else {
$('#rfq_primaryKey').val(response.id);
} }
// window.location.reload(); // window.location.reload();
} else { } else {
@ -3750,6 +3752,17 @@
} }
function removeRowQCR(event) { function removeRowQCR(event) {
Swal.fire({
title: 'Are you sure?',
text: "Do you want to remove the row?",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#d33',
cancelButtonColor: '#3085d6',
confirmButtonText: 'Yes, remove it!',
cancelButtonText: 'Cancel'
}).then((result) => {
if (result.isConfirmed) {
const button = event.target; const button = event.target;
const row = button.closest('tr'); const row = button.closest('tr');
const table = row.closest('table'); const table = row.closest('table');
@ -3758,6 +3771,11 @@
row.remove(); row.remove();
updateVisisbleSNO(table.id); updateVisisbleSNO(table.id);
} }
isFormDataModified = true; // if any value changeing in the table to set true
}
})
} }
function updateVisisbleSNO(tableId) { function updateVisisbleSNO(tableId) {
@ -5704,6 +5722,7 @@
}); });
}); });
} }
</script> </script>