mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
collapsible.js: Listen on #layout
for rendered events
This commit is contained in:
parent
91a8bdf786
commit
a4848803c8
@ -15,7 +15,7 @@
|
|||||||
Icinga.EventListener.call(this, icinga);
|
Icinga.EventListener.call(this, icinga);
|
||||||
|
|
||||||
this.on('layout-change', this.onLayoutChange, this);
|
this.on('layout-change', this.onLayoutChange, this);
|
||||||
this.on('rendered', '.container', this.onRendered, this);
|
this.on('rendered', '#layout', this.onRendered, this);
|
||||||
this.on('click', '.collapsible + .collapsible-control', this.onControlClicked, this);
|
this.on('click', '.collapsible + .collapsible-control', this.onControlClicked, this);
|
||||||
|
|
||||||
this.icinga = icinga;
|
this.icinga = icinga;
|
||||||
@ -40,7 +40,7 @@
|
|||||||
Collapsible.prototype.onRendered = function(event) {
|
Collapsible.prototype.onRendered = function(event) {
|
||||||
var _this = event.data.self;
|
var _this = event.data.self;
|
||||||
|
|
||||||
$('.collapsible:not(.can-collapse)', event.currentTarget).each(function() {
|
$('.collapsible:not(.can-collapse)', event.target).each(function() {
|
||||||
var $collapsible = $(this);
|
var $collapsible = $(this);
|
||||||
|
|
||||||
// Assumes that any newly rendered elements are expanded
|
// Assumes that any newly rendered elements are expanded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user