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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to