Fatal error with latest webtrees 2.1 code
ddrury opened this issue · 1 comments
ddrury commented
At webtrees commit fisharebest/webtrees@3faaf00
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
It's the upgrade to bootstrap 5 that I think causes the problem. (not using jQuery)