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
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:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user