From bea82f42be9454175498484f90b49580548765e7 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 14 Jun 2024 10:56:36 +0900 Subject: [PATCH] =?UTF-8?q?dialog=20=EB=A7=88=EC=9A=B0=EC=8A=A4=20?= =?UTF-8?q?=EB=93=9C=EB=9E=98=EA=B7=B8=20=ED=95=A8=EC=88=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/applib/js/componentization.js | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/src/main/webapp/resources/applib/js/componentization.js b/src/main/webapp/resources/applib/js/componentization.js index 12028f4..5576215 100644 --- a/src/main/webapp/resources/applib/js/componentization.js +++ b/src/main/webapp/resources/applib/js/componentization.js @@ -50,50 +50,6 @@ function fnMakeScrollableTable(tableScrollEl, thisScrollendEvent){ }; } - -/************************************************************************** -* 드래그 가능한 다이얼로그 -**************************************************************************/ -function fnMakeDraggableDialog(dialogEl) { - - var currentDialog; - var currentPosX = 0, currentPosY = 0, previousPosX = 0, previousPosY = 0; - - function fnDragMouseDown(e) { - - e.preventDefault(); - - currentDialog = this.targetDialog; - previousPosX = e.clientX; - previousPosY = e.clientY; - - document.onmouseup = fnCloseDragElement; - document.onmousemove = fnElementDrag; - } - - function fnElementDrag(e) { - - e.preventDefault(); - - currentPosX = previousPosX - e.clientX; - currentPosY = previousPosY - e.clientY; - - previousPosX = e.clientX; - previousPosY = e.clientY; - - currentDialog.style.top = (currentDialog.offsetTop - currentPosY) + 'px'; - currentDialog.style.left = (currentDialog.offsetLeft - currentPosX) + 'px'; - } - - function fnCloseDragElement() { - document.onmouseup = null; - document.onmousemove = null; - } - - $(dialogEl).find(".modal-header")[0].targetDialog = dialogEl; - $(dialogEl).find(".modal-header")[0].onmousedown = fnDragMouseDown; -} - /************************************************************************** * 컬럼 크기 조절 테이블 **************************************************************************/