Merge pull request 'Removed reamrk length logic from form blade file' (#538) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #538
This commit was merged in pull request #538.
This commit is contained in:
2026-04-13 13:23:33 +00:00
3 changed files with 33 additions and 33 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',