CHANGE_UI_FIX - VADIVEL J 2025-10-10

This commit is contained in:
vadivelJ96 2025-10-10 10:55:55 +05:30
parent 58ae918159
commit 05c9a3ede7

View File

@ -312,6 +312,7 @@ $('#btnBranchAdd').click(function() {
$('#district').val('');
$('#branch_city').val('');
$('#branch_form')[0].reset();
$('#branch_form').parsley().reset();
$('.ac').css('display', 'block');
contactCount = 1
@ -400,8 +401,13 @@ $("#branch_form").submit(function(event) {
$('.loader').fadeIn();
$('.loader-mask').fadeIn();
if (branch_PrimaryKey == '') {
$('#branch_form input[name="pre_branch_id"]').val('');
}
var formData = new FormData($('#branch_form')[0]);
const jsonString = JSON.stringify(selectedValues);
const level_contect_data_json_string = JSON.stringify(level_contect_data);
console.log('jsonString', jsonString);
@ -492,7 +498,7 @@ $("#branch_form").submit(function(event) {
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning');
if(xhr.status == 409){
if(xhr.status === 409){
alert('The Current Branch is Already Existing..!!');
}