From b8f39a7477a6ef5f99cde56a4a9b5afb57c1893b Mon Sep 17 00:00:00 2001 From: reschan Date: Mon, 18 Oct 2021 11:51:35 +0700 Subject: [PATCH] feat: proper window priority --- sq2.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sq2.js b/sq2.js index d124d41..340fe28 100644 --- a/sq2.js +++ b/sq2.js @@ -36,6 +36,21 @@ $(document).ready(function(){ handle: '#boost-container-header', }); + $("#overall-window").mousedown(function() { + $(".window-container").css("z-index", 10); + $(this).css("z-index", 11); + }); + + $("#search-container").mousedown(function() { + $(".window-container").css("z-index", 10); + $(this).css("z-index", 11); + }); + + $("#boost-container").mousedown(function() { + $(".window-container").css("z-index", 10); + $(this).css("z-index", 11); + }); + // update builds jQuery(document).on("keypress", '.item-name', function(event){ if (event.keyCode == 13) {