diff --git a/app/Views/client_branch.php b/app/Views/client_branch.php index f11fcd7a..f35d5f99 100755 --- a/app/Views/client_branch.php +++ b/app/Views/client_branch.php @@ -302,7 +302,8 @@ $('#btnBranchAdd').click(function() { $('#district').val(''); $('#branch_city').val(''); $('#branch_form')[0].reset(); - $('#branch_form').parsley().reset(); + $('#branch_form').parsley().reset(); + $('#pre_branch_id').val(''); $('.ac').css('display', 'block'); contactCount = 1 @@ -393,12 +394,6 @@ $("#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]);