| | |
| | | |
| | | hideDialog: function ($dialog) { |
| | | $dialog.modal('hide'); |
| | | $("body").addClass("modal-open"); |
| | | $('.modal:visible').length && $(document.body).addClass('modal-open'); |
| | | }, |
| | | |
| | | createLayout: function ($note, options) { |
| | |
| | | }; |
| | | }; |
| | | |
| | | |
| | | $.summernote = $.extend($.summernote, { |
| | | version: '0.8.2', |
| | | ui: ui, |
| | |
| | | ['view', ['redo', 'undo']], |
| | | ['insert', ['link', 'picture', 'video']] |
| | | ], |
| | | |
| | | |
| | | // popover |
| | | popover: { |
| | |
| | | |
| | | })); |
| | | |
| | | 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'); |
| | | } |
| | | |
| | | // 크롬 브라우저 한글 오류 패치 |