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:
parent
4b43fbe527
commit
5196f16bde
|
@ -163,7 +163,7 @@ html {
|
|||
}
|
||||
|
||||
.dashboard .controls {
|
||||
display: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Not growing larger than 3840px at 1em=16px right now */
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue