Ticket #6241 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Use jQuery onload call when scripts require jQuery

Reported by: azaozz Owned by: anonymous
Priority: normal Milestone: 2.5
Component: Administration Version: 2.5
Severity: normal Keywords: has-patch
Cc:

Description

Many scripts that call addLoadEvent() require jQuery. Better to call jQuery(document).ready directly.

Also several inline scripts were calling addLoadEvent() when they only had to be moved a bit down in the html to work correctly.

Attachments

js-onload.patch Download (5.8 KB) - added by azaozz 4 years ago.

Change History

azaozz4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [7325]) Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.

Note: See TracTickets for help on using tickets.