From 0f59a76b263ba6cd79380a729f38bfca92a907dd Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 28 12월 2021 17:59:17 +0900
Subject: [PATCH] Merge branch 'master' of http://192.168.0.25:9001/r/owl-kisa

---
 src/main/webapp/custom_components/summernote/summernote.js |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/custom_components/summernote/summernote.js b/src/main/webapp/custom_components/summernote/summernote.js
index 1994f12..5e5873c 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) {
@@ -7034,7 +7034,6 @@
         };
     };
 
-
     $.summernote = $.extend($.summernote, {
         version: '0.8.2',
         ui: ui,
@@ -7091,6 +7090,7 @@
                 ['view', ['redo', 'undo']],
                 ['insert', ['link', 'picture', 'video']]
             ],
+
 
             // popover
             popover: {
@@ -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