commit 03/02/2026
This commit is contained in:
@@ -363,11 +363,6 @@ $(document).ready(function () {
|
||||
//console.log("Selected airline tags: ", selected_airlinetags);
|
||||
//console.log("Selected city tags: ", selected_citytags);
|
||||
|
||||
if (selected_airlinetags.length == 0 || selected_citytags.length == 0) {
|
||||
alert("Please select at least one airline tag and one city tag.");
|
||||
return;
|
||||
}
|
||||
|
||||
let airlinevalue = selected_airlinetags.join(";");
|
||||
let cityvalue = selected_citytags.join(";");
|
||||
$('#modalairlinetags').val(airlinevalue);
|
||||
@@ -401,10 +396,7 @@ $(document).ready(function () {
|
||||
selected_messagebankids.push($(this).val());
|
||||
});
|
||||
//console.log("Selected message bank IDs: ", selected_messagebankids);
|
||||
if (selected_messagebankids.length == 0) {
|
||||
alert("Please select at least one message bank ID.");
|
||||
return;
|
||||
}
|
||||
|
||||
let messagebankvalue = selected_messagebankids.join(";");
|
||||
$('#modalmessagebank').val(messagebankvalue);
|
||||
|
||||
@@ -470,23 +462,28 @@ $(document).ready(function () {
|
||||
alert("Password and Verify Password do not match");
|
||||
return;
|
||||
}
|
||||
if (airline_tags.length === 0) {
|
||||
alert("Airline tags cannot be empty");
|
||||
return;
|
||||
}
|
||||
if (city_tags.length === 0) {
|
||||
alert("City tags cannot be empty");
|
||||
return;
|
||||
}
|
||||
if (messagebank_ann_id.length === 0) {
|
||||
alert("Message bank ANN_ID cannot be empty");
|
||||
return;
|
||||
}
|
||||
|
||||
if (broadcastzones.length === 0) {
|
||||
alert("Broadcast zones cannot be empty");
|
||||
return;
|
||||
}
|
||||
|
||||
// bisa empty, kalau user untuk paging saja
|
||||
// revisi 30012026
|
||||
// if (airline_tags.length === 0) {
|
||||
// alert("Airline tags cannot be empty");
|
||||
// return;
|
||||
// }
|
||||
// if (city_tags.length === 0) {
|
||||
// alert("City tags cannot be empty");
|
||||
// return;
|
||||
// }
|
||||
// if (messagebank_ann_id.length === 0) {
|
||||
// alert("Message bank ANN_ID cannot be empty");
|
||||
// return;
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* @type {UserDB}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user