https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42116 Bug ID: 42116 Summary: e.preventDefault is a function, needs parenthesis Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Staff interface Assignee: koha-bugs@lists.koha-community.org Reporter: ephetteplace@cca.edu QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com I noticed that a few places in the codebase e.preventDefault is simply stated as an expression and not called, but preventDefault is a method and must be called to have any effect.
rg "\.preventDefault;" koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt 176: e.preventDefault;
koha-tmpl/intranet-tmpl/prog/js/holds.js 750: e.preventDefault; koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js 79: e.preventDefault; 96: e.preventDefault; This might not be a trivial change because it could alter UI behavior. Bug 42012 fixes clubs.tt. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.