diff options
Diffstat (limited to 'ncp-web/ncp.js')
-rw-r--r-- | ncp-web/ncp.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js index 6467ec8f..615d091b 100644 --- a/ncp-web/ncp.js +++ b/ncp-web/ncp.js @@ -64,7 +64,7 @@ $(function() if ( confLock ) return; confLock = true; - if ( window.innerWidth < 768 ) + if ( window.innerWidth <= 768 ) close_menu(); $( '#' + selectedID ).set('-active'); @@ -212,11 +212,11 @@ $(function() slide_menu_enabled = false; } - if ( window.innerWidth < 768 ) + if ( window.innerWidth <= 768 ) enable_slide_menu(); window.addEventListener('resize', function(){ - if ( window.innerWidth < 768 ) + if ( window.innerWidth <= 768 ) enable_slide_menu(); else disable_slide_menu(); |