#3301 closed defect (bug) (fixed)
adminbar in js function scrollToForm can be null
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6.3 | Priority: | normal |
| Severity: | normal | Version: | 2.6.2 |
| Component: | Appearance - Theme Compatibility | Keywords: | commit |
| Cc: |
Description
We are using the threaded reply, and it is not working since a few weeks.
If we click on "reply", it's reloading and scrolling down to normal reply form.
Console (Google Chrome), is showing:
VM8465 reply.min.js:3 Uncaught TypeError: Cannot read property 'scrollHeight' of null
at Object.scrollToForm (VM8465 reply.min.js:3)
at Object.moveForm (VM8465 reply.min.js:3)
at HTMLAnchorElement.onclick ((index):955)
I changed line 110 in templates/default/js/reply.min.js to:
/* Offset by the adminbar */
if ( typeof ( adminbar ) !== 'undefined' && adminbar != null ) {
offset = adminbar.scrollHeight;
}
because adminbar is not undefined - but NULL.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 7010: