]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable snapper init for IE <= 9
authorVincent Petry <pvince81@owncloud.com>
Tue, 10 Jun 2014 15:14:49 +0000 (17:14 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 10 Jun 2014 15:14:49 +0000 (17:14 +0200)
Snapper doesn't work at all for IE8 and IE9 and messes up with the main
container layout when enabled.

This commits disables snapper for these browsers.

core/js/js.js

index bc4d135f9a783f973eda0ef8b27f1dcb390b6c83..1d5219eff12103bf2c45fc165f4f35c25ded5305 100644 (file)
@@ -1140,7 +1140,7 @@ function initCore() {
        setupMainMenu();
 
        // just add snapper for logged in users
-       if($('#app-navigation').length) {
+       if($('#app-navigation').length && !$('html').hasClass('lte9')) {
 
                // App sidebar on mobile
                var snapper = new Snap({