mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-82373 core: Make CollapsibleRegion more tolerant to behat
This commit is contained in:
parent
7e17945088
commit
5e4ba1f036
@ -138,6 +138,10 @@ M.util.CollapsibleRegion = function(Y, id, userpref, strtooltip) {
|
||||
from: {height:height}
|
||||
});
|
||||
|
||||
animation.on('start', () => M.util.js_pending('CollapsibleRegion'));
|
||||
animation.on('resume', () => M.util.js_pending('CollapsibleRegion'));
|
||||
animation.on('pause', () => M.util.js_complete('CollapsibleRegion'));
|
||||
|
||||
// Handler for the animation finishing.
|
||||
animation.on('end', function() {
|
||||
this.div.toggleClass('collapsed');
|
||||
@ -152,6 +156,8 @@ M.util.CollapsibleRegion = function(Y, id, userpref, strtooltip) {
|
||||
} else {
|
||||
this.icon.set('src', M.util.image_url('t/expanded', 'moodle'));
|
||||
}
|
||||
|
||||
M.util.js_complete('CollapsibleRegion');
|
||||
}, this);
|
||||
|
||||
// Hook up the event handler.
|
||||
|
Loading…
x
Reference in New Issue
Block a user