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; -} - /************************************************************************** * 컬럼 크기 조절 테이블 **************************************************************************/