prevent multiple gas record edits if selected ids is less than 2

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-24 13:48:30 -07:00
parent f2b9dea2b6
commit 9ba62f8bf8

View File

@@ -417,6 +417,9 @@ function searchGasTableRows() {
});
}
function editMultipleGasRecords(ids) {
if (ids.length < 2) {
return;
}
$.post('/Vehicle/GetGasRecordsEditModal', { recordIds: ids }, function (data) {
if (data) {
$("#gasRecordModalContent").html(data);