diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-04-05 15:41:12 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-04-11 05:47:00 +0000 |
commit | b0987b2543ef666091d994c1e9101a2f4bba02c3 (patch) | |
tree | 774e6a74762a7707d745282169d2823f650a18ad /core | |
parent | 514d92b7a8ca8fa639a2619e1682ee4700c3b164 (diff) | |
download | nextcloud-server-b0987b2543ef666091d994c1e9101a2f4bba02c3.tar.gz nextcloud-server-b0987b2543ef666091d994c1e9101a2f4bba02c3.zip |
Do not inject a #app-navigation-toggle if there is already one
This allows apps to ship their own, as in some cases the #app-content
element does not exist on page load and therefore the injection fails
and the icon is missing afterwards.
Fixes https://github.com/nextcloud/server/issues/14956
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index e8a366103a1..5429aaf1a55 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1617,7 +1617,9 @@ function initCore() { setTimeout(resizeMenu, 0); // just add snapper for logged in users - if($('#app-navigation').length && !$('html').hasClass('lte9')) { + // and if the app doesn't handle the nav slider itself + if($('#app-navigation').length && !$('html').hasClass('lte9') + && !$('#app-content').hasClass('no-snapper')) { // App sidebar on mobile var snapper = new Snap({ |