mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
"MDL-22323, fixed right layout unit event"
This commit is contained in:
parent
972cc9d199
commit
7d2975c138
@ -46,9 +46,12 @@ M.mod_chat_ajax.init = function(Y, cfg) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.layout.on('render', function() {
|
this.layout.on('render', function() {
|
||||||
this.getUnitByPosition('left').on('close', function() {
|
var unit = this.getUnitByPosition('right');
|
||||||
|
if (unit) {
|
||||||
|
unit.on('close', function() {
|
||||||
closeLeft();
|
closeLeft();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}, this.layout);
|
}, this.layout);
|
||||||
this.layout.render();
|
this.layout.render();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user