no message

main
이범준 1 year ago
parent 1fd741aea0
commit e6b0813161

@ -71,12 +71,15 @@
<!-- / Layout wrapper -->
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
<!-- script after tail1 -->
<script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js"/>"></script>
<script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js"/>"></script>
<script src="<c:url value="/resources/js/base/menu.js"/>?${ver}"></script>
<!-- script after tail1 -->
<script >
${functions}
${userMenus}
//script after tail2
var menuBranches = treeSupport({
selector:"#menuTree",
trace:wctx.trace,
@ -174,7 +177,9 @@ $(function(){
menuControl.setData(${menus});
menuBranches.open();
});
//script after tail2
</script>
<!-- script after tail -->
</body>
</html>

@ -86,13 +86,13 @@ function openMenu(obj, params) {
url:menuUrl,
data:{},
success:resp => {
console.log("ok");
var sp1 = resp.split("<!-- Content wrapper -->")[1];
sp1 = resp.split("<!-- Page Body -->")[1];
console.log(sp1);
var cw = resp.split("<!-- Content wrapper -->")[1];
var pb = cw.split("<!-- Page Body -->")[1];
$("#div"+dataKey).html(sp1);
var scriptAterTail1 = resp.split("<!-- script after tail1 -->")[1];
var scriptAterTail2 = resp.split("//script after tail2")[1];
$("#div"+dataKey).html(pb + " " + scriptAterTail1 + " " + "<script>"+ scriptAterTail2 + "</script>");
}
});

Loading…
Cancel
Save