dashboard: do not fix and hide any controls

It would be better if view scripts would care about this, but as we
failed so many times this might be the better option.

fixes #8697
This commit is contained in:
Thomas Gelf 2015-03-12 10:04:19 +01:00
parent 16ca8d0654
commit 3af36015ff
2 changed files with 12 additions and 0 deletions

View File

@ -163,6 +163,11 @@ html {
.dashboard .content {
padding: 0;
overflow: auto;
}
.dashboard .controls {
display: none;
}
/* Not growing larger than 3840px at 1em=16px right now */

View File

@ -718,6 +718,9 @@
initializeControls: function (parent) {
var self = this;
if ($(parent).closest('.dashboard').length) {
return;
}
$('.controls', parent).each(function (idx, el) {
var $el = $(el);
@ -761,6 +764,10 @@
return;
}
if ($parent.closest('.dashboard').length) {
return;
}
// Enable this only in case you want to track down UI problems
// self.icinga.logger.debug('Fixing controls for ', $parent);