magicsunday / webtrees-pedigree-chart

SVG based pedigree chart module for webtrees genealogy application.
GNU General Public License v3.0
49 stars 15 forks source link

Fatal error with latest webtrees 2.1 code #29

Closed ddrury closed 3 years ago

ddrury commented 3 years ago

At webtrees commit https://github.com/fisharebest/webtrees/commit/3faaf002227d16afd77a906db4683ac5c8df89ae

Get error message Uncaught TypeError: $(...).on(...).on(...).collapse is not a function

// Handle special case with option toggler (works only with jquery)
$("#showMoreOptions")
    .on("shown.bs.collapse", function () {
        storage.write("showMoreOptions", true);
    })
    .on("hidden.bs.collapse", function () {
        storage.write("showMoreOptions", false);
    })
    .collapse(
        storage.read("showMoreOptions") ? "show" : "hide"
    );
ddrury commented 3 years ago

It's the upgrade to bootstrap 5 that I think causes the problem. (not using jQuery)