no message

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

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

@ -86,13 +86,13 @@ function openMenu(obj, params) {
url:menuUrl, url:menuUrl,
data:{}, data:{},
success:resp => { success:resp => {
console.log("ok");
var sp1 = resp.split("<!-- Content wrapper -->")[1]; var cw = resp.split("<!-- Content wrapper -->")[1];
sp1 = resp.split("<!-- Page Body -->")[1]; var pb = cw.split("<!-- Page Body -->")[1];
console.log(sp1);
$("#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