增加功能:增加jQuery.nicescroll组件,用于图标右侧导航条
This commit is contained in:
parent
d7dfc7a97e
commit
f714b795dc
|
@ -17,13 +17,14 @@
|
||||||
<environment include="Development">
|
<environment include="Development">
|
||||||
<script src="~/js/sweetalert.js"></script>
|
<script src="~/js/sweetalert.js"></script>
|
||||||
<script src="~/js/jquery.scrollTo.js"></script>
|
<script src="~/js/jquery.scrollTo.js"></script>
|
||||||
|
<script src="~/js/jquery.nicescroll.js"></script>
|
||||||
</environment>
|
</environment>
|
||||||
<environment exclude="Development">
|
<environment exclude="Development">
|
||||||
<script src="~/js/sweetalert.min.js"></script>
|
<script src="~/js/sweetalert.min.js"></script>
|
||||||
<script src="~/js/jquery.scrollTo.min.js"></script>
|
<script src="~/js/jquery.scrollTo.min.js"></script>
|
||||||
|
<script src="~/js/jquery.nicescroll.min.js"></script>
|
||||||
</environment>
|
</environment>
|
||||||
<script src="~/js/jquery.dcjqaccordion.2.7.js"></script>
|
<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/common-scripts.js"></script>
|
||||||
<script src="~/js/log.js"></script>
|
<script src="~/js/log.js"></script>
|
||||||
<script src="~/js/toastr.min.js"></script>
|
<script src="~/js/toastr.min.js"></script>
|
||||||
|
|
|
@ -142,7 +142,7 @@ $(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
// custom scrollbar
|
// 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) {
|
$("#gotoTop").on('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
$('#main-content').html(result);
|
var $html = $('#main-content').html(result);
|
||||||
var $iconList = $('div.fontawesome-icon-list').on('click', 'a', function () {
|
var $iconList = $('div.fontawesome-icon-list').on('click', 'a', function () {
|
||||||
window.console.log($(this).children('i').attr('class'));
|
window.console.log($(this).children('i').attr('class'));
|
||||||
return false;
|
return false;
|
||||||
|
@ -15,6 +15,8 @@
|
||||||
$iconList.find('div').addClass('col-xl-2 col-6');
|
$iconList.find('div').addClass('col-xl-2 col-6');
|
||||||
|
|
||||||
$('#main-content').scrollspy({ offset: 150, target: '.fa-nav' });
|
$('#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();
|
var icon = $inputIcon.val();
|
||||||
if (icon) $pickIcon.attr('class', icon);
|
if (icon) $pickIcon.attr('class', icon);
|
||||||
$dialogIcon.show();
|
$dialogIcon.show();
|
||||||
|
$scroll.resize();
|
||||||
});
|
});
|
||||||
|
|
||||||
$dialogIcon.find('div.modal-header, div.modal-footer').on('click', 'button', function () {
|
$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.find('[data-toggle="LgbValidate"] [aria-describedby]').tooltip('hide');
|
||||||
$dialogNew.hide();
|
$dialogNew.hide();
|
||||||
$dialogMenu.modal('show');
|
$dialogMenu.modal('show');
|
||||||
};
|
}
|
||||||
|
|
||||||
$dialogMenu.on('hidden.bs.modal', function () {
|
$dialogMenu.on('hidden.bs.modal', function () {
|
||||||
var sta = state.pop();
|
var sta = state.pop();
|
||||||
|
@ -233,13 +234,14 @@
|
||||||
|
|
||||||
$nestMenu.nestMenu(initNestMenu);
|
$nestMenu.nestMenu(initNestMenu);
|
||||||
|
|
||||||
|
var $scroll = null;
|
||||||
$.bc({
|
$.bc({
|
||||||
url: Menu.iconView,
|
url: Menu.iconView,
|
||||||
contentType: 'text/html',
|
contentType: 'text/html',
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
callback: function (result) {
|
callback: function (result) {
|
||||||
if (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 () {
|
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'));
|
$pickIcon.attr('class', $(this).find('i, span:first').attr('class'));
|
||||||
return false;
|
return false;
|
||||||
|
@ -249,6 +251,8 @@
|
||||||
$('[data-spy="scroll"]').each(function () {
|
$('[data-spy="scroll"]').each(function () {
|
||||||
$(this).scrollspy({ target: $(this).attr('data-target') });
|
$(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