Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||
---|---|---|
| ||
layui.use(["layer", "element", "jquery"], function () { $(".left-nav #nav").off("click"); $(".left-nav #nav").on("click", "li", function (event) { $(".left-nav").find("a").removeClass("active"); $(this).children("a").addClass("active"); if ($(this).children(".sub-menu").length) { if ($(this).hasClass("open")) { $(this).removeClass("open"); $(this).find(".nav_right").html(""); $(this).children(".sub-menu").stop(true, true).slideUp(); } else { $(this).addClass("open"); $(this).children("a").find(".nav_right").html(""); $(this).children(".sub-menu").stop(true, true).slideDown(); } } }); }); |
...