From 4e2ddbe923a05ebc6b0939266b254a53c83aa1ef Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Mon, 13 Apr 2020 15:55:21 +0200 Subject: [PATCH] on ajaxcomplete resize bar --- static/js/codex.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/codex.js b/static/js/codex.js index 2dc8acd..cd68070 100644 --- a/static/js/codex.js +++ b/static/js/codex.js @@ -75,6 +75,9 @@ $(function() { disableResponsiveImagesForInlineLis(); resizeSidebar(); - $(document).bind("ajaxComplete", resizeSidebar); + $(document).bind("ajaxComplete", function() { + // this sucks... But commento is still editing HTML. + setTimeout(resizeSidebar, 1000); + }); });