mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
JS: Disable fixControls()
This commit is contained in:
parent
d2187c3716
commit
cfbeb26354
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user