From 0edf8ec2383bc5455b612cfeb53c799138520422 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 13 Apr 2026 18:53:20 +0530 Subject: [PATCH] Removed reamrk length logic from form blade file --- .../views/approval/approve-form.blade.php | 22 +++++++++---------- resources/views/approval/hold-form.blade.php | 22 +++++++++---------- .../views/approval/reject-form.blade.php | 22 +++++++++---------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/resources/views/approval/approve-form.blade.php b/resources/views/approval/approve-form.blade.php index f582a13..efc849c 100644 --- a/resources/views/approval/approve-form.blade.php +++ b/resources/views/approval/approve-form.blade.php @@ -60,19 +60,19 @@ const remark = document.getElementById("remark").value.trim(); const id = document.getElementById("requestId").value; const level = document.getElementById("level").value; - const errorDiv = document.getElementById("remarkError"); + // const errorDiv = document.getElementById("remarkError"); - if (remark == "") { - errorDiv.innerText = "Remark is mandatory."; - errorDiv.style.display = "block"; - return; - } + // if (remark == "") { + // errorDiv.innerText = "Remark is mandatory."; + // errorDiv.style.display = "block"; + // return; + // } - if (remark.length > 60) { - errorDiv.innerText = "Remark must be within 60 characters."; - errorDiv.style.display = "block"; - return; - } + // if (remark.length > 60) { + // errorDiv.innerText = "Remark must be within 60 characters."; + // errorDiv.style.display = "block"; + // return; + // } fetch('/characteristic/approve-save', { method: 'POST', diff --git a/resources/views/approval/hold-form.blade.php b/resources/views/approval/hold-form.blade.php index f549b2c..3ee78f0 100644 --- a/resources/views/approval/hold-form.blade.php +++ b/resources/views/approval/hold-form.blade.php @@ -64,19 +64,19 @@ const remark = document.getElementById("remark").value.trim(); const id = document.getElementById("requestId").value; const level = document.getElementById("level").value; - const errorDiv = document.getElementById("remarkError"); + // const errorDiv = document.getElementById("remarkError"); - if (remark == "") { - errorDiv.innerText = "Remark is mandatory."; - errorDiv.style.display = "block"; - return; - } + // if (remark == "") { + // errorDiv.innerText = "Remark is mandatory."; + // errorDiv.style.display = "block"; + // return; + // } - if (remark.length > 60) { - errorDiv.innerText = "Remark must be within 60 characters."; - errorDiv.style.display = "block"; - return; - } + // if (remark.length > 60) { + // errorDiv.innerText = "Remark must be within 60 characters."; + // errorDiv.style.display = "block"; + // return; + // } fetch('/characteristic/hold-save', { method: 'POST', diff --git a/resources/views/approval/reject-form.blade.php b/resources/views/approval/reject-form.blade.php index 94d0c14..c53aad0 100644 --- a/resources/views/approval/reject-form.blade.php +++ b/resources/views/approval/reject-form.blade.php @@ -63,19 +63,19 @@ const remark = document.getElementById("remark").value.trim(); const id = document.getElementById("requestId").value; const level = document.getElementById("level").value; - const errorDiv = document.getElementById("remarkError"); + // const errorDiv = document.getElementById("remarkError"); - if (remark == "") { - errorDiv.innerText = "Remark is mandatory."; - errorDiv.style.display = "block"; - return; - } + // if (remark == "") { + // errorDiv.innerText = "Remark is mandatory."; + // errorDiv.style.display = "block"; + // return; + // } - if (remark.length > 60) { - errorDiv.innerText = "Remark must be within 60 characters."; - errorDiv.style.display = "block"; - return; - } + // if (remark.length > 60) { + // errorDiv.innerText = "Remark must be within 60 characters."; + // errorDiv.style.display = "block"; + // return; + // } fetch('/characteristic/reject-save', { method: 'POST',