JS: Disable fixControls()

This commit is contained in:
Florian Strohmaier 2019-07-03 16:22:40 +02:00 committed by Johannes Meyer
parent d2187c3716
commit cfbeb26354

View File

@ -529,11 +529,11 @@
initializeControls: function(container) { initializeControls: function(container) {
var $container = $(container); var $container = $(container);
if ($container.parent('.dashboard').length || $('#layout').hasClass('fullscreen-layout')) { /* if ($container.parent('.dashboard').length || $('#layout').hasClass('fullscreen-layout')) {
return; return;
} }*/
$container.find('.controls').each(function() { /* $container.find('.controls').each(function() {
var $controls = $(this); var $controls = $(this);
if (! $controls.prev('.fake-controls').length) { if (! $controls.prev('.fake-controls').length) {
var $tabs = $controls.find('.tabs', $controls); var $tabs = $controls.find('.tabs', $controls);
@ -552,12 +552,12 @@
position: 'fixed' position: 'fixed'
}); });
} }
}); });*/
this.fixControls($container); this.fixControls($container);
}, },
fixControls: function($container) { fixControls2: function($container) {
var $layout = $('#layout'); var $layout = $('#layout');
if ($layout.hasClass('fullscreen-layout')) { if ($layout.hasClass('fullscreen-layout')) {
@ -664,6 +664,11 @@
} }
}, },
fixControls: function ($container) {
console.log('fixControls');
return false;
},
toggleFullscreen: function () { toggleFullscreen: function () {
$('#layout').toggleClass('fullscreen-layout'); $('#layout').toggleClass('fullscreen-layout');
this.fixControls(); this.fixControls();