From c3c7cd95a06344771ea73b6e7792401422ec55cd Mon Sep 17 00:00:00 2001 From: vadivelJ96 Date: Wed, 5 Mar 2025 13:58:54 +0530 Subject: [PATCH] changes in supplier module 05-03-2025 --- app/Views/editdepartment.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Views/editdepartment.php b/app/Views/editdepartment.php index 11a4fc50..88fb7515 100755 --- a/app/Views/editdepartment.php +++ b/app/Views/editdepartment.php @@ -186,6 +186,12 @@ $("#deptBtnId").on('click',function(){ let depCode =$("#DEPCode").val(); let headDepCode = $("#HeadDept").val(); + + if(departmentName.length<1){ + alert(`Department Name cannot be empty..!!`); + return; + } + $('#loader').show(); $.ajax({ type:"POST",