This commit is contained in:
Horilla
2025-03-11 12:32:03 +05:30
parent 37c34bf6f9
commit 6e3f345da4
2 changed files with 4146 additions and 4137 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -324,7 +324,7 @@ function checkSequence(element) {
if (
stageOrder.indexOf(parseInt(stageId)) !=
stageOrder.indexOf(parseInt(preStageId)) + 1 &&
stageOrder.indexOf(parseInt(preStageId)) + 1 &&
stage.type != "cancelled"
) {
Swal.fire({
@@ -486,7 +486,7 @@ window.confirm = function (message) {
});
};
function handleHtmxTarget(event, path , verb){
function handleHtmxTarget(event, path, verb) {
var targetElement;
var hxTarget = $(event.target).attr("hx-target");
if (hxTarget) {
@@ -570,6 +570,12 @@ $(document).on("htmx:beforeRequest", function (event, data) {
}
});
$(document).on('click', '.select2-selection__choice__remove', function (event) {
if ($('[role="tooltip"]:visible').length) {
$('[role="tooltip"]').hide();
}
});
$(document).on("keydown", function (event) {
// Check if the cursor is not focused on an input field
var isInputFocused = $(document.activeElement).is(