after a series of bug fixes plus Non MNO logic for Sender IDs, unfinished leave management and holiday modules

This commit is contained in:
Kwesi Banson Jnr
2025-03-19 10:33:04 +00:00
parent 6cede6d980
commit cf39ff2682
112 changed files with 26812 additions and 496 deletions

36
public/assets/js/senderid.js vendored Normal file
View File

@@ -0,0 +1,36 @@
$(document).ready(function(){
$('#directMno').change(function(tve){
tve.preventDefault();
// var theIDD = $(this).siblings('.shortCodeEntryRowId').val();
var directMnoSelection = $(this).val();
$.ajax({
type: "GET",
url: base_url + '/senderids/get-mno-list/' + directMnoSelection,
processData: false,
contentType: false,
async: false,
success: function (data){
if (data.code === 1) {
$('#networkName').empty();
$.each(data.result, function(id, row) {
// console.log(row);
$('#networkName').append($("<option />").val(row.id).text(row.name));
});
}
else if (data.code > 1) {
$.alert({
title: 'Alert!',
content: data.msg,
});
}
else {
$.alert({
title: 'Alert!',
content: 'Your request could not be handled. Try again !',
});
}
}
});
});
});