提交 68725ef8 编写于 作者: MaxKey单点登录官方's avatar MaxKey单点登录官方

side-nav

上级 625c2e43
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
target="window"> target="window">
<input class="button btn btn-danger mr-3 " id="deleteBtn" type="button" value="<@locale code="button.text.delete"/>" <input class="button btn btn-danger mr-3 " id="deleteBtn" type="button" value="<@locale code="button.text.delete"/>"
wurl="<@base/>/roles/delete" /> wurl="<@base/>/accountsstrategy/delete" />
</div> </div>
</td> </td>
</tr> </tr>
......
...@@ -29,27 +29,24 @@ $(function(){ ...@@ -29,27 +29,24 @@ $(function(){
}); });
}); });
//side navigation
if($('#side-nav-menu')["metisMenu"]){
$('#side-nav-menu').metisMenu();
}
//on captcha image click ,new a captcha code //on captcha image click ,new a captcha code
$('.captcha-image').click(function () {// $('.captcha-image').click(function () {//
$(this).attr("src", webContextPath + "/captcha?"+(new Date()).getTime()); $(this).attr("src", webContextPath + "/captcha?"+(new Date()).getTime());
}); });
/*side-nav-menu*/
$(".sidenav-fold-toggler").on("click",function(e) { /*side-nav-menu side navigation*/
$(".app").toggleClass("side-nav-folded"); if($('#side-nav-menu')["metisMenu"]){
e.preventDefault(); $('#side-nav-menu').metisMenu();
}); }
$('.side-nav-menu').each(function(){ $('.side-nav-menu').each(function(){
var href = $(this).attr('href'); var href = $(this).attr('href');
if(window.location.href.indexOf(href) > 0){ if(window.location.href.indexOf(href) > 0){
$(this).parents("li").addClass("mm-active"); $(this).parents("li").addClass("mm-active");
$(this).parents("li").children("ul").addClass("mm-show");
} }
}); });
/** switch_tab*/ /** switch_tab*/
$(".switch_tab_class").on("click",function(){ $(".switch_tab_class").on("click",function(){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册