修改BUG:面包屑导航条没有工作
This commit is contained in:
parent
c9caf9d1f5
commit
3dc3a8b435
|
@ -208,4 +208,8 @@ $(function () {
|
|||
return this.optional(element) || /^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$/.test(value);
|
||||
}, "请填写正确的IP地址");
|
||||
}
|
||||
// breadcrumb
|
||||
var breadcrumb = $('#nav-accordion').find('a.active').text();
|
||||
if (breadcrumb === "") $('#breadNav').hide();
|
||||
else $('#breadNav').text(breadcrumb);
|
||||
});
|
|
@ -11,11 +11,6 @@
|
|||
classExpand: 'dcjq-current-parent'
|
||||
});
|
||||
|
||||
// breadcrumb
|
||||
var breadcrumb = $('.sidebar-menu > li > a.active > span').text();
|
||||
if (breadcrumb === "") $('.breadcrumb > li + li').hide();
|
||||
else $('.breadcrumb > li + li').text(breadcrumb);
|
||||
|
||||
$("#gotoTop").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('#main-content, .content-body, body').animate({
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
@section javascript {
|
||||
<script src="~/Scripts/Content.js"></script>
|
||||
}
|
||||
|
||||
@section header {
|
||||
@Html.Partial("Header", Model)
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
<!--breadcrumbs start -->
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="@Url.Content(Model.HomeUrl)"><i class="fa fa-home"></i>首页</a></li>
|
||||
<li></li>
|
||||
<li id="breadNav"></li>
|
||||
</ul>
|
||||
<!--breadcrumbs end -->
|
||||
<input id="footer" type="text" class="hidden" value="@Model.Footer" />
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
@RenderSection("css", false)
|
||||
}
|
||||
@section javascript {
|
||||
<script src="~/Content/js/framework.js"></script>
|
||||
@RenderSection("Javascript", false)
|
||||
}
|
||||
<section>
|
||||
|
|
Loading…
Reference in New Issue