Skip to content

Commit

Permalink
dashboard: do not fix and hide any controls
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas-Gelf committed Mar 12, 2015
1 parent 16ca8d0 commit 3af3601
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/css/icinga/layout-structure.less
Expand Up @@ -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 */
Expand Down
7 changes: 7 additions & 0 deletions public/js/icinga/ui.js
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 3af3601

Please sign in to comment.