fix: biz tab close button :after로 반영

main
Jonguk. Lim 2 years ago
parent ab531deb6b
commit b658cae78c

@ -42,6 +42,30 @@
.tab_wrap .tit_list > li.active a {position: relative;border-color: #ddd;border-bottom: 1px solid #fff;background: #fff;color: #337ab7;z-index: 2;}
.tab_wrap .tab_con {border: 1px solid #ddd;border-top: none;}
.tab_wrap .tab_con .tab_list {display: none;height: 200px;padding: 15px;}
/*
.tab-close {
background-image: url(/resources/images/btn/bu5_close.gif);
display: inline-block;
background-size: 10px 10px;
width: 10px;
height: 10px;
cursor: hand;
}
*/
div#ifrTabs li.tab:after {
/*content: url(/resources/images/btn/bu5_close.gif);*/
/*content: attr(css);*/
content: '';
background-image: url(/resources/images/btn/bu5_close.gif);
display: inline-block;
background-size: 10px 10px;
width: 10px;
height: 10px;
cursor: hand;
}
</style>
</head>
@ -95,6 +119,7 @@
<script defer src="${pageContext.request.contextPath}/resources/biz/common/js/contentTabs.js"></script>
<script defer type="text/javascript">
$(document).ready(() => {
$('#ifrTabs').tabs({
activate: function (e, ui){
@ -145,6 +170,10 @@
// })
$('li.biz-tab-close').on('click', (e)=>{
alert(e)
})
//tab();
openMenu('main', 'main', '/framework/biz/cmm/mainPage2.do');

@ -45,7 +45,7 @@ function openMenu(menuId, menuNm, menuUrl) {
}
const num_tabs = OPEN_TAB_CNT + 1;
const liEl = '<li id="li-'+ menuId +'" class="tab ui-icon-close"><a href="#tab-'+ menuId + '">' + menuNm + '</a></li>';
const liEl = '<li id="li-'+ menuId +'" class="tab biz-tab-close"><a href="#tab-'+ menuId + '">' + menuNm + '</a></li>';
// const liEl = '<li id="li-'+ menuId +'" onclick="closeTab('+ menuId + ',' + num_tabs + ')" class="tab ui-icon-close"><a href="#tab-'+ num_tabs + '">' + menuNm + '</a></li>';
$('div#ifrTabs ul').append(liEl);

Loading…
Cancel
Save