Opened 4 years ago
Closed 4 years ago
#8439 closed defect (bug) (fixed)
Page "Change Avatar" produces error in jQuery & prevents the avatar from resizing
Reported by: | WeddyWood | Owned by: | imath |
---|---|---|---|
Milestone: | 8.0.0 | Priority: | high |
Severity: | normal | Version: | 7.2.0 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
Page "Change Avatar" produces error in jQuery:
Uncaught TypeError: url.indexOf is not a function
This error message comes from jQuery.fn.load function.
Because of:
.load, .unload, and .error, deprecated since jQuery 1.8, are no more. Use .on() to register listeners.
...
jQuery Blog
You need update calls load function in file bp-core-cssjs.php (line 303):
jQuery(window).load( function(){
To:
jQuery(window).on('load', function(){
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi @WeddyWood
Thanks a lot for your report and for sharing the way to fix it. I've used it into the attached patch.
We haven't seen this because it belongs to the old way of setting an avatar (before the Avatar UI was renewed during the 2.3 release), so it's not loaded by default.