增加功能:增加jQuery.nicescroll组件,用于图标右侧导航条
This commit is contained in:
parent
d7dfc7a97e
commit
f714b795dc
|
@ -17,13 +17,14 @@
|
|||
<environment include="Development">
|
||||
<script src="~/js/sweetalert.js"></script>
|
||||
<script src="~/js/jquery.scrollTo.js"></script>
|
||||
<script src="~/js/jquery.nicescroll.js"></script>
|
||||
</environment>
|
||||
<environment exclude="Development">
|
||||
<script src="~/js/sweetalert.min.js"></script>
|
||||
<script src="~/js/jquery.scrollTo.min.js"></script>
|
||||
<script src="~/js/jquery.nicescroll.min.js"></script>
|
||||
</environment>
|
||||
<script src="~/js/jquery.dcjqaccordion.2.7.js"></script>
|
||||
<script src="~/js/jquery.nicescroll.min.js"></script>
|
||||
<script src="~/js/common-scripts.js"></script>
|
||||
<script src="~/js/log.js"></script>
|
||||
<script src="~/js/toastr.min.js"></script>
|
||||
|
|
|
@ -142,7 +142,7 @@ $(function () {
|
|||
});
|
||||
|
||||
// custom scrollbar
|
||||
if (!$.browser.versions.ios) $("#sidebar").niceScroll({ styler: "fb", cursorcolor: "#e8403f", cursorwidth: '3', cursorborderradius: '10px', background: '#404040', spacebarenabled: false, cursorborder: '', scrollspeed: 60 });
|
||||
if (!$.browser.versions.ios) $("#sidebar").niceScroll({ cursorcolor: "#e8403f", cursorwidth: '3px', background: '#2a3542', spacebarenabled: false, cursorborder: '' });
|
||||
|
||||
$("#gotoTop").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
dataType: 'html',
|
||||
callback: function (result) {
|
||||
if (result) {
|
||||
$('#main-content').html(result);
|
||||
var $html = $('#main-content').html(result);
|
||||
var $iconList = $('div.fontawesome-icon-list').on('click', 'a', function () {
|
||||
window.console.log($(this).children('i').attr('class'));
|
||||
return false;
|
||||
|
@ -15,6 +15,8 @@
|
|||
$iconList.find('div').addClass('col-xl-2 col-6');
|
||||
|
||||
$('#main-content').scrollspy({ offset: 150, target: '.fa-nav' });
|
||||
|
||||
if (!$.browser.versions.ios) $html.find('.fa-nav .nav').niceScroll({ cursorcolor: "#e8403f", cursorwidth: '3px', spacebarenabled: false, cursorborder: '' });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -144,6 +144,7 @@
|
|||
var icon = $inputIcon.val();
|
||||
if (icon) $pickIcon.attr('class', icon);
|
||||
$dialogIcon.show();
|
||||
$scroll.resize();
|
||||
});
|
||||
|
||||
$dialogIcon.find('div.modal-header, div.modal-footer').on('click', 'button', function () {
|
||||
|
@ -190,7 +191,7 @@
|
|||
$dialogNew.find('[data-toggle="LgbValidate"] [aria-describedby]').tooltip('hide');
|
||||
$dialogNew.hide();
|
||||
$dialogMenu.modal('show');
|
||||
};
|
||||
}
|
||||
|
||||
$dialogMenu.on('hidden.bs.modal', function () {
|
||||
var sta = state.pop();
|
||||
|
@ -233,13 +234,14 @@
|
|||
|
||||
$nestMenu.nestMenu(initNestMenu);
|
||||
|
||||
var $scroll = null;
|
||||
$.bc({
|
||||
url: Menu.iconView,
|
||||
contentType: 'text/html',
|
||||
dataType: 'html',
|
||||
callback: function (result) {
|
||||
if (result) {
|
||||
$dialogIcon.find('.modal-body').html(result);
|
||||
var $html = $dialogIcon.find('.modal-body').html(result);
|
||||
var $iconList = $('div.fontawesome-icon-list').on('click', 'div.fa-hover a, ul li', function () {
|
||||
$pickIcon.attr('class', $(this).find('i, span:first').attr('class'));
|
||||
return false;
|
||||
|
@ -249,6 +251,8 @@
|
|||
$('[data-spy="scroll"]').each(function () {
|
||||
$(this).scrollspy({ target: $(this).attr('data-target') });
|
||||
});
|
||||
|
||||
if (!$.browser.versions.ios) $scroll = $html.find('.fa-nav .nav').niceScroll({ cursorcolor: "#e8403f", cursorwidth: '3px', background: '#fff', spacebarenabled: false, cursorborder: '' });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue