add gadjo:sidepage-toggled event (#12773)

This commit is contained in:
Frédéric Péters 2019-05-28 09:29:02 +02:00
parent 078f9e0c4c
commit 93431724ce
1 changed files with 4 additions and 0 deletions

View File

@ -330,6 +330,10 @@ var gadjo_js = gadjo_js || {};
} else {
set_sidepage_status('collasped');
}
setTimeout(function() {
// delay to get the CSS transition to run
$(window).trigger('gadjo:sidepage-toggled');
}, 500);
});
if ($(window).width() > 760) {
if (get_sidepage_status() == 'expanded') {