0

For a customization, I would like to have an event for when text is added to the page after clicking - show quoted text -. Is there any?

I tried BugViewChange but that doesn't work. Should it?

flag

1 Answer

0

BugViewChange only fires when changing between view and edit mode, not when adding additional inline content such as "show quoted text." Currently there aren't any custom events that fire when "show quoted text" is clicked.

As a workaround, you could poll for $('.showQuote.expanded') which will only match after "show quoted text" has been clicked. Note that this selector will fail to match if the user later clicks "hide quoted text."

Alternatively, you could use something like the livequery plugin to achieve a similar effect.

link|flag
1 
Thanks. The customization now uses the ajaxComplete event, filtering for settings.url containing pg=pgQuotedEmail. – Michel de Ruiter Jan 16 at 9:52
Nice workaround! – db Jan 16 at 14:48

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.