From fd2d3a0e0667419ba90a00cea0da2ee9a9012710 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 14 Oct 2021 01:12:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B0=BD=20=EB=8B=AB=EA=B8=B0=EA=B0=80?= =?UTF-8?q?=20=ED=95=84=EC=9A=94=ED=95=9C=20=EC=B0=BD=EC=9D=80=20window.op?= =?UTF-8?q?en=EC=9C=BC=EB=A1=9C=20=EC=97=B4=EC=96=B4=EC=95=BC=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/d_setting/templates/allButton.php.orig | 32 +++++++++++----------- hwe/templates/allButton.php | 18 ++++++------ hwe/templates/commandButton.php | 10 +++---- hwe/ts/main.ts | 13 +++++++++ 4 files changed, 43 insertions(+), 30 deletions(-) diff --git a/hwe/d_setting/templates/allButton.php.orig b/hwe/d_setting/templates/allButton.php.orig index 2c21905a..af1a4562 100644 --- a/hwe/d_setting/templates/allButton.php.orig +++ b/hwe/d_setting/templates/allButton.php.orig @@ -1,22 +1,22 @@
- - - - - - - - + + + + + + + +
- - - - - - - - + + + + + + + +
diff --git a/hwe/templates/allButton.php b/hwe/templates/allButton.php index 15e38ac3..af1a4562 100644 --- a/hwe/templates/allButton.php +++ b/hwe/templates/allButton.php @@ -1,13 +1,13 @@
- - - - - - - - + + + + + + + +
@@ -17,6 +17,6 @@ - +
diff --git a/hwe/templates/commandButton.php b/hwe/templates/commandButton.php index e2306d8c..a2770617 100644 --- a/hwe/templates/commandButton.php +++ b/hwe/templates/commandButton.php @@ -8,18 +8,18 @@ - - + + - + - - + + \ No newline at end of file diff --git a/hwe/ts/main.ts b/hwe/ts/main.ts index 1db1c1e5..68bd0e3c 100644 --- a/hwe/ts/main.ts +++ b/hwe/ts/main.ts @@ -192,6 +192,19 @@ $(function ($) { return false; }) + $('.open-window').on('click', function(e){ + e.preventDefault(); + let target = $(e.target as HTMLAnchorElement); + while(target.attr('href') === undefined){ + target = target.parent('a'); + if(target.length == 0){ + return; + } + } + const href = target.attr('href'); + window.open(href); + }); + setInterval(myclock, 500); reloadCommandList(); activateFlip();