From bdb1efdc604fce543e21152b4263a9362f64389f Mon Sep 17 00:00:00 2001
From: minhee <alsdldlfrl@gmail.com>
Date: 목, 10 3월 2022 15:35:19 +0900
Subject: [PATCH] - api 이슈 추가 시 입력한 ip에 속해있는 업체정보를 가진 이슈의 하위로 입력되도록 수정 - issue_company 테이블에 ip 컬럼 추가 및 이슈 추가/수정 시 ip 대역대 항목 추가

---
 src/main/webapp/custom_components/summernote/summernote.js |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/custom_components/summernote/summernote.js b/src/main/webapp/custom_components/summernote/summernote.js
index d2b5ef9..6090685 100644
--- a/src/main/webapp/custom_components/summernote/summernote.js
+++ b/src/main/webapp/custom_components/summernote/summernote.js
@@ -2020,7 +2020,7 @@
 
         hideDialog: function ($dialog) {
             $dialog.modal('hide');
-            $("body").addClass("modal-open");
+            $('.modal:visible').length && $(document.body).addClass('modal-open');
         },
 
         createLayout: function ($note, options) {
@@ -5679,7 +5679,7 @@
                 }).render();
             });
 
-            context.memo('button.picture', function () {
+            /*context.memo('button.picture', function () {
                 return ui.button({
                     contents: ui.icon(options.icons.picture),
                     tooltip: lang.image.image,
@@ -5693,7 +5693,7 @@
                     tooltip: lang.video.video,
                     click: context.createInvokeHandler('videoDialog.show')
                 }).render();
-            });
+            });*/
 
             context.memo('button.hr', function () {
                 return ui.button({
@@ -7293,9 +7293,20 @@
 
 }));
 
+var count = 0; // 紐⑤떖�씠 �뿴由� �븣 留덈떎 count �빐�꽌  z-index媛믪쓣 �넂�뿬以�
+$(document).on('show.bs.modal', '.modal', function () {
+
+    var zIndex = 1040 + (10 * count);
+    $(this).css('z-index', zIndex);
+    setTimeout(function() {
+        $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
+    }, 0);
+    count = count + 1
+});
+
 function closeOwlModal() {
     $('.owl_close_modal').modal('hide');
-    $('body').addClass('modal-open');
+    $('.modal:visible').length && $(document.body).addClass('modal-open');
 }
 
 //  �겕濡� 釉뚮씪�슦�� �븳湲� �삤瑜� �뙣移�

--
Gitblit v1.8.0