Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#6647 closed enhancement (fixed)

In avatar.js and cover-image.js, an event should be triggered once the attachment url is set.

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 2.4 Priority: normal
Severity: normal Version: 2.3.0
Component: Media Keywords: needs-patch
Cc:

Description

This would allow plugins to add custom actions. And i need it :)

I'll add a patch asap. My plan is to use a specific Backbone.Model having no impact upon the rest of the scripts.

Attachments (1)

6647.patch (4.0 KB) - added by imath 9 years ago.

Download all attachments as: .zip

Change History (6)

#1 @imath
9 years ago

  • Owner set to imath
  • Status changed from new to assigned

#2 @imath
9 years ago

6647.patch is what i think we should include.

And you can test it with this quick & dirty function https://gist.github.com/imath/d6ca3c135c5a768f2018

@imath
9 years ago

#3 @imath
9 years ago

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

In 10208:

Avatar UI, Cover Image UI: Introduce a "client side hook"

When the avatar is uploaded or deleted and when the Cover Image is uploaded or deleted, the corresponding Attachment Backbone.Model will trigger an event containing the url, the object type (group or user) and the item id of the object.

Fixes #6647

#4 @DJPaul
8 years ago

  • Component changed from Component - Attachments to Media

#5 @DJPaul
8 years ago

  • Type changed from task to enhancement
Note: See TracTickets for help on using tickets.