From 9108651a7aace0c48b2de1a0cc1a8f5358dc4008 Mon Sep 17 00:00:00 2001 From: Gauthier PC portable 024 Date: Wed, 5 May 2021 17:25:12 +0200 Subject: [PATCH] FIX : if dom is added with ajax, selector need to keep working --- htdocs/core/js/lib_foot.js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index d04379210a6..9bf67ee7e58 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -87,7 +87,7 @@ if (!defined('JS_JQUERY_DISABLE_DROPDOWN')) var lastopendropdown = null; // Click onto the link "link to" or "hamburger", toggle dropdown - $(".dropdown dt a").on(\'click\', function () { + $(document).on(\'click\', \'.dropdown dt a\', function () { console.log("toggle dropdown dt a"); //$(this).parent().parent().find(\'dd ul\').slideToggle(\'fast\');