修改BUG:面包屑导航条没有工作

This commit is contained in:
Argo-Lenovo 2016-11-19 12:22:58 +08:00
parent c9caf9d1f5
commit 3dc3a8b435
5 changed files with 5 additions and 8 deletions

View File

@ -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);
});

View File

@ -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({

View File

@ -5,7 +5,6 @@
@section javascript {
<script src="~/Scripts/Content.js"></script>
}
@section header {
@Html.Partial("Header", Model)
}

View File

@ -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" />

View File

@ -10,7 +10,6 @@
@RenderSection("css", false)
}
@section javascript {
<script src="~/Content/js/framework.js"></script>
@RenderSection("Javascript", false)
}
<section>