mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
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 {
|
.dashboard .controls {
|
||||||
display: none;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Not growing larger than 3840px at 1em=16px right now */
|
/* Not growing larger than 3840px at 1em=16px right now */
|
||||||
|
@ -716,8 +716,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
initializeControls: function (parent) {
|
initializeControls: function (parent) {
|
||||||
|
|
||||||
var self = this;
|
|
||||||
if ($(parent).closest('.dashboard').length) {
|
if ($(parent).closest('.dashboard').length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -747,7 +745,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
fixControls: function ($parent) {
|
fixControls: function ($parent) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if ('undefined' === typeof $parent) {
|
if ('undefined' === typeof $parent) {
|
||||||
@ -773,6 +770,11 @@
|
|||||||
|
|
||||||
$('.controls', $parent).each(function (idx, el) {
|
$('.controls', $parent).each(function (idx, el) {
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
|
|
||||||
|
if ($el.closest('.dashboard').length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var $fake = $el.next('.fake-controls');
|
var $fake = $el.next('.fake-controls');
|
||||||
var y = $parent.scrollTop();
|
var y = $parent.scrollTop();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user