Only enable toggle for sidebar in mobile mode
This commit is contained in:
parent
ea8705bac8
commit
872006da03
|
@ -979,7 +979,12 @@ function initCore() {
|
|||
});
|
||||
|
||||
// toggle the navigation on mobile
|
||||
OC.registerMenu($('#header #owncloud'), $('#navigation'));
|
||||
if (window.matchMedia) {
|
||||
var mq = window.matchMedia('(max-width: 600px)');
|
||||
if (mq && mq.matches) {
|
||||
OC.registerMenu($('#header #owncloud'), $('#navigation'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(initCore);
|
||||
|
|
Loading…
Reference in New Issue