@@ -39,13 +39,7 @@ $(document).ready(function(){
|
||||
//隐藏没有分配父节点权限,却有子节点权限的叶子节点
|
||||
//$("#menuTree").children("li:not(:eq(0))").hide();
|
||||
});
|
||||
var helpHrefVal=null;
|
||||
function showHelp(helpHref) {
|
||||
|
||||
var editBtn=$("#editHelp");
|
||||
if(editBtn!=null&&editBtn!=undefined){
|
||||
editBtn.remove();
|
||||
}
|
||||
if(helpHref!=''){
|
||||
var lang = "${cookie.Language.value }".toLowerCase();
|
||||
if(lang=="" || lang.indexOf("en")!=-1) {
|
||||
@@ -55,27 +49,9 @@ function showHelp(helpHref) {
|
||||
}else if(lang.indexOf("ru")!=-1) {
|
||||
helpHref += ".html";
|
||||
}
|
||||
helpHrefVal=helpHref;
|
||||
$(".help").load("${pageContext.request.contextPath}"+helpHref+"?time="+new Date().getTime());
|
||||
var permission="${fns:getUser().isAdmin() }";
|
||||
|
||||
if(permission!=null&&permission!=undefined&&permission=="true"){
|
||||
$("#menuTree").parent().after('<button class="btn btn-default" id="editHelp" style="margin-left:15px;"onclick="javascript:editHelp();"><spring:message code="edit"/></button>');
|
||||
}
|
||||
|
||||
$(".help").load("${pageContext.request.contextPath}"+helpHref);
|
||||
}
|
||||
};
|
||||
var helpInfo=null;
|
||||
function editHelp(){
|
||||
helpInfo=null;
|
||||
var editBtn=$("#editHelp");
|
||||
if(editBtn!=null&&editBtn!=undefined){
|
||||
editBtn.remove();
|
||||
}
|
||||
helpInfo=$(".help").html();
|
||||
$(".help").load("${pageContext.request.contextPath}/online-help/editHelp.html");
|
||||
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -88,8 +64,8 @@ function editHelp(){
|
||||
<div id="menuTree" class="ztree" style="margin-top:3px;float:left;"></div>
|
||||
</div>
|
||||
<div class="col-md-10 help">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user