eldarion / eldarion-ajax

a library for adding declarative ajax functionality to your website
BSD 3-Clause "New" or "Revised" License
758 stars 153 forks source link

Add "start" event #34

Closed evilmango closed 11 years ago

evilmango commented 11 years ago

I'd like be able to display my own custom spinner (which backdrops the whole page and places a spinning bar on top). I was thinking the easiest way to deal with this would be to hook into the success and error events however I would need a start event too.

Would it be possible to add an event like:

$this.trigger('bootstrap-ajax:start');

somewhere near where spin() is called?

paltman commented 11 years ago

@evilmango this is done, it's called eldarion-ajax:begin and is in 0.7.0