HANDLE_NONEB_RFQ_QCR AS SAME PAGE
This commit is contained in:
parent
c8627c8724
commit
1d2481f5b3
@ -1997,12 +1997,16 @@
|
|||||||
// Initialize the parent table
|
// Initialize the parent table
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
// // // console.log("bjnglfkrg ", rfq_data.length);
|
// // // console.log("bjnglfkrg ", rfq_data.length);
|
||||||
const url = window.location.pathname; // Get the path (e.g., "/nhance/rfq/list/75/1")
|
// const url = window.location.pathname; // Get the path (e.g., "/nhance/rfq/list/75/1")
|
||||||
const segments = url.split("/"); // Split by "/"
|
// const segments = url.split("/"); // Split by "/"
|
||||||
segments[segments.length - 1] = "1"; // Change the last segment
|
// segments[segments.length - 1] = "1"; // Change the last segment
|
||||||
const newUrl = segments.join("/"); // Rebuild the URL
|
// const newUrl = segments.join("/"); // Rebuild the URL
|
||||||
rfq_or_qcr = 1;
|
const path = window.location.pathname; // Get the current URL path
|
||||||
history.pushState(null, "", newUrl); // Change the URL without reloading
|
const segments = path.split('/'); // Split the path into segments
|
||||||
|
const lead_id = segments[segments.length - 2]; // Get the second last segment (15)
|
||||||
|
const type = segments[segments.length - 1];
|
||||||
|
rfq_or_qcr = type;
|
||||||
|
// history.pushState(null, "", newUrl); // Change the URL without reloading
|
||||||
|
|
||||||
if (rfq_data.length) {
|
if (rfq_data.length) {
|
||||||
// // console.log("inside if conditoon");
|
// // console.log("inside if conditoon");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user