FEAT_RACK_RATE_TEST_CONTD
This commit is contained in:
parent
c981cc20df
commit
849c910709
@ -182,7 +182,7 @@
|
|||||||
<div class="modal-dialog modal-dialog-centered" style="max-width:80%;">
|
<div class="modal-dialog modal-dialog-centered" style="max-width:80%;">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title" id="myCenterModalLabel">Premium Calculation Test Data</h4>
|
<h4 class="modal-title" id="myCenterModalLabel">Dependent Conflict Test Data</h4>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
@ -206,6 +206,19 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
let mouseX = 0;
|
||||||
|
let mouseY = 0;
|
||||||
|
|
||||||
|
document.addEventListener('mousemove', function(event) {
|
||||||
|
mouseX = event.clientX;
|
||||||
|
mouseY = event.clientY;
|
||||||
|
});
|
||||||
|
|
||||||
|
function getMouseCoordinates() {
|
||||||
|
return { x: mouseX, y: mouseY };
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// Initialize select2
|
// Initialize select2
|
||||||
$("#clients").select2();
|
$("#clients").select2();
|
||||||
@ -884,6 +897,7 @@ const suggestionsList = document.getElementById("suggestions");
|
|||||||
newCell.contentEditable = "true"; // Make the cell editable (if needed)
|
newCell.contentEditable = "true"; // Make the cell editable (if needed)
|
||||||
newCell.style.border = "1px solid";
|
newCell.style.border = "1px solid";
|
||||||
newCell.addEventListener("input", handleInput);
|
newCell.addEventListener("input", handleInput);
|
||||||
|
newCell.addEventListener("blur", function(){ hideSuggestions(); });
|
||||||
newRow.appendChild(newCell);
|
newRow.appendChild(newCell);
|
||||||
|
|
||||||
// SI (assuming you want a date input field)
|
// SI (assuming you want a date input field)
|
||||||
@ -983,10 +997,13 @@ const suggestionsList = document.getElementById("suggestions");
|
|||||||
|
|
||||||
// Position the suggestion box near the input field (optional)
|
// Position the suggestion box near the input field (optional)
|
||||||
const cellRect = focusedCell.parentNode.getBoundingClientRect();
|
const cellRect = focusedCell.parentNode.getBoundingClientRect();
|
||||||
// console.log(cellRect.left);
|
|
||||||
// console.log(cellRect.right);
|
const coords = getMouseCoordinates();
|
||||||
suggestionBox.style.left = 170 + "px";
|
console.log(coords.x);
|
||||||
suggestionBox.style.top = 50 + "px";
|
console.log(coords.y);
|
||||||
|
|
||||||
|
suggestionBox.style.left = (coords.x - 100) + "px";
|
||||||
|
suggestionBox.style.top = (coords.y - 300) + "px";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user