#1190 new
Chris R.

Enhancement to Ajax.PeriodicalUpdater

Reported by Chris R. | December 23rd, 2010 @ 01:23 AM

The documentation for Ajax.PeriodicalUpdater states "Also the onComplete callback is hijacked to be used for update management, so if you wish to be notified of every successful request, use onSuccess instead (beware: it will get called before the update is performed).".

I noticed that in the initialization block the user specified onComplete gets stored on the Ajax.PeriodicalUpdater instance, but never used. The attached patch will call the user specified onComplete at the end of the updateComplete function and allow post update actions.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Pages