增加功能:面包屑导航条增加查找title属性值
This commit is contained in:
parent
dbde804b0e
commit
9e538b0b67
|
@ -149,7 +149,7 @@ $(function () {
|
||||||
// breadcrumb
|
// breadcrumb
|
||||||
var $breadNav = $('#breadNav');
|
var $breadNav = $('#breadNav');
|
||||||
var arch = $sideMenu.find('a.active').last();
|
var arch = $sideMenu.find('a.active').last();
|
||||||
if (arch.text() !== "") $breadNav.removeClass('d-none').text(arch.text());
|
$breadNav.removeClass('d-none').text(arch.text() || $('title').text());
|
||||||
|
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
autoScrollSidebar: function (options) {
|
autoScrollSidebar: function (options) {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
// breadcrumb
|
// breadcrumb
|
||||||
var $breadNav = $('#breadNav');
|
var $breadNav = $('#breadNav');
|
||||||
var arch = $sideMenu.find('a.active').last();
|
var arch = $sideMenu.find('a.active').last();
|
||||||
if (arch.text() !== "") $breadNav.removeClass('d-none').text(arch.text());
|
$breadNav.removeClass('d-none').text(arch.text() || $('title').text());
|
||||||
|
|
||||||
$('.sidebar-toggle-box').on('click', function () {
|
$('.sidebar-toggle-box').on('click', function () {
|
||||||
if ($(window).width() >= 768) return;
|
if ($(window).width() >= 768) return;
|
||||||
|
|
Loading…
Reference in New Issue