mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
show / hide the toggle button to match the dynamic resize function
@fichtner -> show / hide the toggle button to match the dynamic resize function
This commit is contained in:
parent
eaa057ec01
commit
369958beda
@ -187,6 +187,7 @@ $(document).ready(function () {
|
||||
if ((win.height() < navHeight || win.width() < 760) && navigation.not('col-sidebar-hidden')) {
|
||||
navigation.addClass('col-sidebar-hidden');
|
||||
mouse_events_off();
|
||||
toggle_btn.hide();
|
||||
if (navigation.hasClass('col-sidebar-left')) {
|
||||
opnsense_sidebar_toggle(false);
|
||||
mouse_events_off();
|
||||
@ -195,6 +196,7 @@ $(document).ready(function () {
|
||||
} else if ((win.height() >= navHeight && win.width() >= 760) && navigation.hasClass('col-sidebar-hidden')) {
|
||||
navigation.removeClass('col-sidebar-hidden');
|
||||
transition_duration(0);
|
||||
toggle_btn.show();
|
||||
if (window.sessionStorage && sessionStorage.getItem('toggle_sidebar_preset') == 1) {
|
||||
opnsense_sidebar_toggle(false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user