Do not forcibly hide controls in the dashboard

Our views respect view=compact now entirely so there is no need for such
a generic "solution" since it also prevents some views from being
completely displayed in the dashboard such as the host, service and
contact detail view.

refs #7876
This commit is contained in:
Johannes Meyer 2015-04-20 13:06:45 +02:00
parent 4b43fbe527
commit 5196f16bde
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -716,8 +716,6 @@
},
initializeControls: function (parent) {
var self = this;
if ($(parent).closest('.dashboard').length) {
return;
}
@ -747,7 +745,6 @@
},
fixControls: function ($parent) {
var self = this;
if ('undefined' === typeof $parent) {
@ -773,6 +770,11 @@
$('.controls', $parent).each(function (idx, el) {
var $el = $(el);
if ($el.closest('.dashboard').length) {
return;
}
var $fake = $el.next('.fake-controls');
var y = $parent.scrollTop();