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:
opnsenseuser 2018-11-27 20:32:19 +01:00 committed by Franco Fichtner
parent eaa057ec01
commit 369958beda

View File

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