FIX : if dom is added with ajax, selector need to keep working

This commit is contained in:
Gauthier PC portable 024
2021-05-05 17:25:12 +02:00
parent 17cb441569
commit 9108651a7a

View File

@@ -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\');