From 93431724ceb3d2aacb9fc9c1af43b178f72ffcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 28 May 2019 09:29:02 +0200 Subject: [PATCH] add gadjo:sidepage-toggled event (#12773) --- gadjo/static/js/gadjo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gadjo/static/js/gadjo.js b/gadjo/static/js/gadjo.js index f52843b..03cd4bd 100644 --- a/gadjo/static/js/gadjo.js +++ b/gadjo/static/js/gadjo.js @@ -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') {